 /* Copyright 2018 JDCLOUD.COM

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http:#www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.





Contact: 

NOTE: This class is auto generated by the jdcloud code generator program.
*/


#import <Foundation/Foundation.h>
#import <JDCloudOCSDKPartner/PartnerModel.h>

@implementation PrePaymentAchievement
-(id) initWithPin:(NSString*) pin
      name:(NSString*)name
      realName:(NSString*)realName
      serviceCode:(NSString*)serviceCode
      serviceCodeName:(NSString*)serviceCodeName
      consumeDate:(NSString*)consumeDate
      consumeCount:(NSNumber*)consumeCount
      cashPayFeeCount:(NSNumber*)cashPayFeeCount
      achievmentCount:(NSNumber*)achievmentCount
      payCouponFeeCount:(NSNumber*)payCouponFeeCount
      freeCouponFeeCount:(NSNumber*)freeCouponFeeCount
      orderId:(NSNumber*)orderId
      opType:(NSNumber*)opType
      opTypeName:(NSString*)opTypeName
      billTime:(NSString*)billTime { 
     self.pin = pin;               
     self.name = name;               
     self.realName = realName;               
     self.serviceCode = serviceCode;               
     self.serviceCodeName = serviceCodeName;               
     self.consumeDate = consumeDate;               
     self.consumeCount = consumeCount;               
     self.cashPayFeeCount = cashPayFeeCount;               
     self.achievmentCount = achievmentCount;               
     self.payCouponFeeCount = payCouponFeeCount;               
     self.freeCouponFeeCount = freeCouponFeeCount;               
     self.orderId = orderId;               
     self.opType = opType;               
     self.opTypeName = opTypeName;               
     self.billTime = billTime;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self pin])
    {
        [result setValue:[self pin] forKey:@"pin"];
    }
    if([self name])
    {
        [result setValue:[self name] forKey:@"name"];
    }
    if([self realName])
    {
        [result setValue:[self realName] forKey:@"realName"];
    }
    if([self serviceCode])
    {
        [result setValue:[self serviceCode] forKey:@"serviceCode"];
    }
    if([self serviceCodeName])
    {
        [result setValue:[self serviceCodeName] forKey:@"serviceCodeName"];
    }
    if([self consumeDate])
    {
        [result setValue:[self consumeDate] forKey:@"consumeDate"];
    }
    if([self consumeCount])
    {
        [result setValue:[self consumeCount] forKey:@"consumeCount"];
    }
    if([self cashPayFeeCount])
    {
        [result setValue:[self cashPayFeeCount] forKey:@"cashPayFeeCount"];
    }
    if([self achievmentCount])
    {
        [result setValue:[self achievmentCount] forKey:@"achievmentCount"];
    }
    if([self payCouponFeeCount])
    {
        [result setValue:[self payCouponFeeCount] forKey:@"payCouponFeeCount"];
    }
    if([self freeCouponFeeCount])
    {
        [result setValue:[self freeCouponFeeCount] forKey:@"freeCouponFeeCount"];
    }
    if([self orderId])
    {
        [result setValue:[self orderId] forKey:@"orderId"];
    }
    if([self opType])
    {
        [result setValue:[self opType] forKey:@"opType"];
    }
    if([self opTypeName])
    {
        [result setValue:[self opTypeName] forKey:@"opTypeName"];
    }
    if([self billTime])
    {
        [result setValue:[self billTime] forKey:@"billTime"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.pin = [dictionary objectForKey:@"pin"];
    self.name = [dictionary objectForKey:@"name"];
    self.realName = [dictionary objectForKey:@"realName"];
    self.serviceCode = [dictionary objectForKey:@"serviceCode"];
    self.serviceCodeName = [dictionary objectForKey:@"serviceCodeName"];
    self.consumeDate = [dictionary objectForKey:@"consumeDate"];
    self.consumeCount = [dictionary objectForKey:@"consumeCount"];
    self.cashPayFeeCount = [dictionary objectForKey:@"cashPayFeeCount"];
    self.achievmentCount = [dictionary objectForKey:@"achievmentCount"];
    self.payCouponFeeCount = [dictionary objectForKey:@"payCouponFeeCount"];
    self.freeCouponFeeCount = [dictionary objectForKey:@"freeCouponFeeCount"];
    self.orderId = [dictionary objectForKey:@"orderId"];
    self.opType = [dictionary objectForKey:@"opType"];
    self.opTypeName = [dictionary objectForKey:@"opTypeName"];
    self.billTime = [dictionary objectForKey:@"billTime"];
    return self;
}
 @end
@implementation OperatorAchievement
-(id) initWithPin:(NSString*) pin
      name:(NSString*)name
      realName:(NSString*)realName
      oneLevelDistributorName:(NSString*)oneLevelDistributorName
      secondLevelDistributorName:(NSString*)secondLevelDistributorName
      dept:(NSNumber*)dept
      deptName:(NSString*)deptName
      distributorType:(NSString*)distributorType
      distributorTypeName:(NSString*)distributorTypeName
      superDistributorName:(NSString*)superDistributorName
      superDistributorPin:(NSString*)superDistributorPin
      serviceCode:(NSString*)serviceCode
      serviceCodeName:(NSString*)serviceCodeName
      consumeDate:(NSString*)consumeDate
      consumeCount:(NSNumber*)consumeCount
      cashPayFeeCount:(NSNumber*)cashPayFeeCount
      achievmentCount:(NSNumber*)achievmentCount
      payCouponFeeCount:(NSNumber*)payCouponFeeCount
      freeCouponFeeCount:(NSNumber*)freeCouponFeeCount { 
     self.pin = pin;               
     self.name = name;               
     self.realName = realName;               
     self.oneLevelDistributorName = oneLevelDistributorName;               
     self.secondLevelDistributorName = secondLevelDistributorName;               
     self.dept = dept;               
     self.deptName = deptName;               
     self.distributorType = distributorType;               
     self.distributorTypeName = distributorTypeName;               
     self.superDistributorName = superDistributorName;               
     self.superDistributorPin = superDistributorPin;               
     self.serviceCode = serviceCode;               
     self.serviceCodeName = serviceCodeName;               
     self.consumeDate = consumeDate;               
     self.consumeCount = consumeCount;               
     self.cashPayFeeCount = cashPayFeeCount;               
     self.achievmentCount = achievmentCount;               
     self.payCouponFeeCount = payCouponFeeCount;               
     self.freeCouponFeeCount = freeCouponFeeCount;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self pin])
    {
        [result setValue:[self pin] forKey:@"pin"];
    }
    if([self name])
    {
        [result setValue:[self name] forKey:@"name"];
    }
    if([self realName])
    {
        [result setValue:[self realName] forKey:@"realName"];
    }
    if([self oneLevelDistributorName])
    {
        [result setValue:[self oneLevelDistributorName] forKey:@"oneLevelDistributorName"];
    }
    if([self secondLevelDistributorName])
    {
        [result setValue:[self secondLevelDistributorName] forKey:@"secondLevelDistributorName"];
    }
    if([self dept])
    {
        [result setValue:[self dept] forKey:@"dept"];
    }
    if([self deptName])
    {
        [result setValue:[self deptName] forKey:@"deptName"];
    }
    if([self distributorType])
    {
        [result setValue:[self distributorType] forKey:@"distributorType"];
    }
    if([self distributorTypeName])
    {
        [result setValue:[self distributorTypeName] forKey:@"distributorTypeName"];
    }
    if([self superDistributorName])
    {
        [result setValue:[self superDistributorName] forKey:@"superDistributorName"];
    }
    if([self superDistributorPin])
    {
        [result setValue:[self superDistributorPin] forKey:@"superDistributorPin"];
    }
    if([self serviceCode])
    {
        [result setValue:[self serviceCode] forKey:@"serviceCode"];
    }
    if([self serviceCodeName])
    {
        [result setValue:[self serviceCodeName] forKey:@"serviceCodeName"];
    }
    if([self consumeDate])
    {
        [result setValue:[self consumeDate] forKey:@"consumeDate"];
    }
    if([self consumeCount])
    {
        [result setValue:[self consumeCount] forKey:@"consumeCount"];
    }
    if([self cashPayFeeCount])
    {
        [result setValue:[self cashPayFeeCount] forKey:@"cashPayFeeCount"];
    }
    if([self achievmentCount])
    {
        [result setValue:[self achievmentCount] forKey:@"achievmentCount"];
    }
    if([self payCouponFeeCount])
    {
        [result setValue:[self payCouponFeeCount] forKey:@"payCouponFeeCount"];
    }
    if([self freeCouponFeeCount])
    {
        [result setValue:[self freeCouponFeeCount] forKey:@"freeCouponFeeCount"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.pin = [dictionary objectForKey:@"pin"];
    self.name = [dictionary objectForKey:@"name"];
    self.realName = [dictionary objectForKey:@"realName"];
    self.oneLevelDistributorName = [dictionary objectForKey:@"oneLevelDistributorName"];
    self.secondLevelDistributorName = [dictionary objectForKey:@"secondLevelDistributorName"];
    self.dept = [dictionary objectForKey:@"dept"];
    self.deptName = [dictionary objectForKey:@"deptName"];
    self.distributorType = [dictionary objectForKey:@"distributorType"];
    self.distributorTypeName = [dictionary objectForKey:@"distributorTypeName"];
    self.superDistributorName = [dictionary objectForKey:@"superDistributorName"];
    self.superDistributorPin = [dictionary objectForKey:@"superDistributorPin"];
    self.serviceCode = [dictionary objectForKey:@"serviceCode"];
    self.serviceCodeName = [dictionary objectForKey:@"serviceCodeName"];
    self.consumeDate = [dictionary objectForKey:@"consumeDate"];
    self.consumeCount = [dictionary objectForKey:@"consumeCount"];
    self.cashPayFeeCount = [dictionary objectForKey:@"cashPayFeeCount"];
    self.achievmentCount = [dictionary objectForKey:@"achievmentCount"];
    self.payCouponFeeCount = [dictionary objectForKey:@"payCouponFeeCount"];
    self.freeCouponFeeCount = [dictionary objectForKey:@"freeCouponFeeCount"];
    return self;
}
 @end
@implementation ReturnPolicyResult
-(id) initWithId:(NSNumber*) idValue
      deptId:(NSNumber*)deptId
      deptName:(NSString*)deptName
      distributorType:(NSNumber*)distributorType
      distributorTypeName:(NSString*)distributorTypeName
      returnType:(NSNumber*)returnType
      itemId:(NSNumber*)itemId
      itemName:(NSString*)itemName
      circleType:(NSNumber*)circleType
      circleName:(NSString*)circleName
      circleFlag:(NSNumber*)circleFlag
      circleValue:(NSNumber*)circleValue
      condition:(NSString*)condition
      conditionRemark:(NSString*)conditionRemark
      returnRatio:(NSNumber*)returnRatio
      status:(NSNumber*)status
      createTime:(NSString*)createTime
      createUser:(NSString*)createUser
      updateTime:(NSString*)updateTime
      updateUser:(NSString*)updateUser
      yn:(NSNumber*)yn { 
     self.idValue = idValue;               
     self.deptId = deptId;               
     self.deptName = deptName;               
     self.distributorType = distributorType;               
     self.distributorTypeName = distributorTypeName;               
     self.returnType = returnType;               
     self.itemId = itemId;               
     self.itemName = itemName;               
     self.circleType = circleType;               
     self.circleName = circleName;               
     self.circleFlag = circleFlag;               
     self.circleValue = circleValue;               
     self.condition = condition;               
     self.conditionRemark = conditionRemark;               
     self.returnRatio = returnRatio;               
     self.status = status;               
     self.createTime = createTime;               
     self.createUser = createUser;               
     self.updateTime = updateTime;               
     self.updateUser = updateUser;               
     self.yn = yn;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self idValue])
    {
        [result setValue:[self idValue] forKey:@"id"];
    }
    if([self deptId])
    {
        [result setValue:[self deptId] forKey:@"deptId"];
    }
    if([self deptName])
    {
        [result setValue:[self deptName] forKey:@"deptName"];
    }
    if([self distributorType])
    {
        [result setValue:[self distributorType] forKey:@"distributorType"];
    }
    if([self distributorTypeName])
    {
        [result setValue:[self distributorTypeName] forKey:@"distributorTypeName"];
    }
    if([self returnType])
    {
        [result setValue:[self returnType] forKey:@"returnType"];
    }
    if([self itemId])
    {
        [result setValue:[self itemId] forKey:@"itemId"];
    }
    if([self itemName])
    {
        [result setValue:[self itemName] forKey:@"itemName"];
    }
    if([self circleType])
    {
        [result setValue:[self circleType] forKey:@"circleType"];
    }
    if([self circleName])
    {
        [result setValue:[self circleName] forKey:@"circleName"];
    }
    if([self circleFlag])
    {
        [result setValue:[self circleFlag] forKey:@"circleFlag"];
    }
    if([self circleValue])
    {
        [result setValue:[self circleValue] forKey:@"circleValue"];
    }
    if([self condition])
    {
        [result setValue:[self condition] forKey:@"condition"];
    }
    if([self conditionRemark])
    {
        [result setValue:[self conditionRemark] forKey:@"conditionRemark"];
    }
    if([self returnRatio])
    {
        [result setValue:[self returnRatio] forKey:@"returnRatio"];
    }
    if([self status])
    {
        [result setValue:[self status] forKey:@"status"];
    }
    if([self createTime])
    {
        [result setValue:[self createTime] forKey:@"createTime"];
    }
    if([self createUser])
    {
        [result setValue:[self createUser] forKey:@"createUser"];
    }
    if([self updateTime])
    {
        [result setValue:[self updateTime] forKey:@"updateTime"];
    }
    if([self updateUser])
    {
        [result setValue:[self updateUser] forKey:@"updateUser"];
    }
    if([self yn])
    {
        [result setValue:[self yn] forKey:@"yn"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.idValue = [dictionary objectForKey:@"id"];
    self.deptId = [dictionary objectForKey:@"deptId"];
    self.deptName = [dictionary objectForKey:@"deptName"];
    self.distributorType = [dictionary objectForKey:@"distributorType"];
    self.distributorTypeName = [dictionary objectForKey:@"distributorTypeName"];
    self.returnType = [dictionary objectForKey:@"returnType"];
    self.itemId = [dictionary objectForKey:@"itemId"];
    self.itemName = [dictionary objectForKey:@"itemName"];
    self.circleType = [dictionary objectForKey:@"circleType"];
    self.circleName = [dictionary objectForKey:@"circleName"];
    self.circleFlag = [dictionary objectForKey:@"circleFlag"];
    self.circleValue = [dictionary objectForKey:@"circleValue"];
    self.condition = [dictionary objectForKey:@"condition"];
    self.conditionRemark = [dictionary objectForKey:@"conditionRemark"];
    self.returnRatio = [dictionary objectForKey:@"returnRatio"];
    self.status = [dictionary objectForKey:@"status"];
    self.createTime = [dictionary objectForKey:@"createTime"];
    self.createUser = [dictionary objectForKey:@"createUser"];
    self.updateTime = [dictionary objectForKey:@"updateTime"];
    self.updateUser = [dictionary objectForKey:@"updateUser"];
    self.yn = [dictionary objectForKey:@"yn"];
    return self;
}
 @end
@implementation Achievement
-(id) initWithPin:(NSString*) pin
      name:(NSString*)name
      realName:(NSString*)realName
      serviceCode:(NSString*)serviceCode
      serviceCodeName:(NSString*)serviceCodeName
      consumeDate:(NSString*)consumeDate
      consumeCount:(NSNumber*)consumeCount
      cashPayFeeCount:(NSNumber*)cashPayFeeCount
      achievmentCount:(NSNumber*)achievmentCount
      payCouponFeeCount:(NSNumber*)payCouponFeeCount
      freeCouponFeeCount:(NSNumber*)freeCouponFeeCount { 
     self.pin = pin;               
     self.name = name;               
     self.realName = realName;               
     self.serviceCode = serviceCode;               
     self.serviceCodeName = serviceCodeName;               
     self.consumeDate = consumeDate;               
     self.consumeCount = consumeCount;               
     self.cashPayFeeCount = cashPayFeeCount;               
     self.achievmentCount = achievmentCount;               
     self.payCouponFeeCount = payCouponFeeCount;               
     self.freeCouponFeeCount = freeCouponFeeCount;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self pin])
    {
        [result setValue:[self pin] forKey:@"pin"];
    }
    if([self name])
    {
        [result setValue:[self name] forKey:@"name"];
    }
    if([self realName])
    {
        [result setValue:[self realName] forKey:@"realName"];
    }
    if([self serviceCode])
    {
        [result setValue:[self serviceCode] forKey:@"serviceCode"];
    }
    if([self serviceCodeName])
    {
        [result setValue:[self serviceCodeName] forKey:@"serviceCodeName"];
    }
    if([self consumeDate])
    {
        [result setValue:[self consumeDate] forKey:@"consumeDate"];
    }
    if([self consumeCount])
    {
        [result setValue:[self consumeCount] forKey:@"consumeCount"];
    }
    if([self cashPayFeeCount])
    {
        [result setValue:[self cashPayFeeCount] forKey:@"cashPayFeeCount"];
    }
    if([self achievmentCount])
    {
        [result setValue:[self achievmentCount] forKey:@"achievmentCount"];
    }
    if([self payCouponFeeCount])
    {
        [result setValue:[self payCouponFeeCount] forKey:@"payCouponFeeCount"];
    }
    if([self freeCouponFeeCount])
    {
        [result setValue:[self freeCouponFeeCount] forKey:@"freeCouponFeeCount"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.pin = [dictionary objectForKey:@"pin"];
    self.name = [dictionary objectForKey:@"name"];
    self.realName = [dictionary objectForKey:@"realName"];
    self.serviceCode = [dictionary objectForKey:@"serviceCode"];
    self.serviceCodeName = [dictionary objectForKey:@"serviceCodeName"];
    self.consumeDate = [dictionary objectForKey:@"consumeDate"];
    self.consumeCount = [dictionary objectForKey:@"consumeCount"];
    self.cashPayFeeCount = [dictionary objectForKey:@"cashPayFeeCount"];
    self.achievmentCount = [dictionary objectForKey:@"achievmentCount"];
    self.payCouponFeeCount = [dictionary objectForKey:@"payCouponFeeCount"];
    self.freeCouponFeeCount = [dictionary objectForKey:@"freeCouponFeeCount"];
    return self;
}
 @end
@implementation ReturnConditionOperatorDTO
-(id) initWithCode:(NSNumber*) code
      operatorValue:(NSString*)operatorValue
      value:(NSNumber*)value { 
     self.code = code;               
     self.operatorValue = operatorValue;               
     self.value = value;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self code])
    {
        [result setValue:[self code] forKey:@"code"];
    }
    if([self operatorValue])
    {
        [result setValue:[self operatorValue] forKey:@"operator"];
    }
    if([self value])
    {
        [result setValue:[self value] forKey:@"value"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.code = [dictionary objectForKey:@"code"];
    self.operatorValue = [dictionary objectForKey:@"operator"];
    self.value = [dictionary objectForKey:@"value"];
    return self;
}
 @end
@implementation DicDetailQuery
-(id) initWithId:(NSNumber*) idValue
      codeType:(NSString*)codeType
      code:(NSString*)code
      name:(NSString*)name
      value:(NSString*)value
      useFlag:(NSNumber*)useFlag
      systemType:(NSString*)systemType
      refValue:(NSString*)refValue
      seq:(NSNumber*)seq
      remark:(NSString*)remark
      createTime:(NSString*)createTime
      createUser:(NSString*)createUser
      updateTime:(NSString*)updateTime
      updateUser:(NSString*)updateUser
      yn:(NSNumber*)yn
      pageIndex:(NSNumber*)pageIndex
      pageSize:(NSNumber*)pageSize
      offset:(NSNumber*)offset { 
     self.idValue = idValue;               
     self.codeType = codeType;               
     self.code = code;               
     self.name = name;               
     self.value = value;               
     self.useFlag = useFlag;               
     self.systemType = systemType;               
     self.refValue = refValue;               
     self.seq = seq;               
     self.remark = remark;               
     self.createTime = createTime;               
     self.createUser = createUser;               
     self.updateTime = updateTime;               
     self.updateUser = updateUser;               
     self.yn = yn;               
     self.pageIndex = pageIndex;               
     self.pageSize = pageSize;               
     self.offset = offset;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self idValue])
    {
        [result setValue:[self idValue] forKey:@"id"];
    }
    if([self codeType])
    {
        [result setValue:[self codeType] forKey:@"codeType"];
    }
    if([self code])
    {
        [result setValue:[self code] forKey:@"code"];
    }
    if([self name])
    {
        [result setValue:[self name] forKey:@"name"];
    }
    if([self value])
    {
        [result setValue:[self value] forKey:@"value"];
    }
    if([self useFlag])
    {
        [result setValue:[self useFlag] forKey:@"useFlag"];
    }
    if([self systemType])
    {
        [result setValue:[self systemType] forKey:@"systemType"];
    }
    if([self refValue])
    {
        [result setValue:[self refValue] forKey:@"refValue"];
    }
    if([self seq])
    {
        [result setValue:[self seq] forKey:@"seq"];
    }
    if([self remark])
    {
        [result setValue:[self remark] forKey:@"remark"];
    }
    if([self createTime])
    {
        [result setValue:[self createTime] forKey:@"createTime"];
    }
    if([self createUser])
    {
        [result setValue:[self createUser] forKey:@"createUser"];
    }
    if([self updateTime])
    {
        [result setValue:[self updateTime] forKey:@"updateTime"];
    }
    if([self updateUser])
    {
        [result setValue:[self updateUser] forKey:@"updateUser"];
    }
    if([self yn])
    {
        [result setValue:[self yn] forKey:@"yn"];
    }
    if([self pageIndex])
    {
        [result setValue:[self pageIndex] forKey:@"pageIndex"];
    }
    if([self pageSize])
    {
        [result setValue:[self pageSize] forKey:@"pageSize"];
    }
    if([self offset])
    {
        [result setValue:[self offset] forKey:@"offset"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.idValue = [dictionary objectForKey:@"id"];
    self.codeType = [dictionary objectForKey:@"codeType"];
    self.code = [dictionary objectForKey:@"code"];
    self.name = [dictionary objectForKey:@"name"];
    self.value = [dictionary objectForKey:@"value"];
    self.useFlag = [dictionary objectForKey:@"useFlag"];
    self.systemType = [dictionary objectForKey:@"systemType"];
    self.refValue = [dictionary objectForKey:@"refValue"];
    self.seq = [dictionary objectForKey:@"seq"];
    self.remark = [dictionary objectForKey:@"remark"];
    self.createTime = [dictionary objectForKey:@"createTime"];
    self.createUser = [dictionary objectForKey:@"createUser"];
    self.updateTime = [dictionary objectForKey:@"updateTime"];
    self.updateUser = [dictionary objectForKey:@"updateUser"];
    self.yn = [dictionary objectForKey:@"yn"];
    self.pageIndex = [dictionary objectForKey:@"pageIndex"];
    self.pageSize = [dictionary objectForKey:@"pageSize"];
    self.offset = [dictionary objectForKey:@"offset"];
    return self;
}
 @end
@implementation CustomerVo
-(id) initWithPin:(NSString*) pin
      distributorLevel1Name:(NSString*)distributorLevel1Name
      distributorLevel2Name:(NSString*)distributorLevel2Name
      relTime:(NSString*)relTime
      source:(NSNumber*)source
      aliasName:(NSString*)aliasName
      contracter:(NSString*)contracter
      tel:(NSString*)tel
      email:(NSString*)email
      remark:(NSString*)remark
      dept:(NSNumber*)dept
      deptName:(NSString*)deptName
      createTime:(NSString*)createTime
      createUser:(NSString*)createUser
      updateTime:(NSString*)updateTime
      accountTypeName:(NSString*)accountTypeName
      realName:(NSString*)realName
      name:(NSString*)name
      updateUser:(NSString*)updateUser { 
     self.pin = pin;               
     self.distributorLevel1Name = distributorLevel1Name;               
     self.distributorLevel2Name = distributorLevel2Name;               
     self.relTime = relTime;               
     self.source = source;               
     self.aliasName = aliasName;               
     self.contracter = contracter;               
     self.tel = tel;               
     self.email = email;               
     self.remark = remark;               
     self.dept = dept;               
     self.deptName = deptName;               
     self.createTime = createTime;               
     self.createUser = createUser;               
     self.updateTime = updateTime;               
     self.accountTypeName = accountTypeName;               
     self.realName = realName;               
     self.name = name;               
     self.updateUser = updateUser;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self pin])
    {
        [result setValue:[self pin] forKey:@"pin"];
    }
    if([self distributorLevel1Name])
    {
        [result setValue:[self distributorLevel1Name] forKey:@"distributorLevel1Name"];
    }
    if([self distributorLevel2Name])
    {
        [result setValue:[self distributorLevel2Name] forKey:@"distributorLevel2Name"];
    }
    if([self relTime])
    {
        [result setValue:[self relTime] forKey:@"relTime"];
    }
    if([self source])
    {
        [result setValue:[self source] forKey:@"source"];
    }
    if([self aliasName])
    {
        [result setValue:[self aliasName] forKey:@"aliasName"];
    }
    if([self contracter])
    {
        [result setValue:[self contracter] forKey:@"contracter"];
    }
    if([self tel])
    {
        [result setValue:[self tel] forKey:@"tel"];
    }
    if([self email])
    {
        [result setValue:[self email] forKey:@"email"];
    }
    if([self remark])
    {
        [result setValue:[self remark] forKey:@"remark"];
    }
    if([self dept])
    {
        [result setValue:[self dept] forKey:@"dept"];
    }
    if([self deptName])
    {
        [result setValue:[self deptName] forKey:@"deptName"];
    }
    if([self createTime])
    {
        [result setValue:[self createTime] forKey:@"createTime"];
    }
    if([self createUser])
    {
        [result setValue:[self createUser] forKey:@"createUser"];
    }
    if([self updateTime])
    {
        [result setValue:[self updateTime] forKey:@"updateTime"];
    }
    if([self accountTypeName])
    {
        [result setValue:[self accountTypeName] forKey:@"accountTypeName"];
    }
    if([self realName])
    {
        [result setValue:[self realName] forKey:@"realName"];
    }
    if([self name])
    {
        [result setValue:[self name] forKey:@"name"];
    }
    if([self updateUser])
    {
        [result setValue:[self updateUser] forKey:@"updateUser"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.pin = [dictionary objectForKey:@"pin"];
    self.distributorLevel1Name = [dictionary objectForKey:@"distributorLevel1Name"];
    self.distributorLevel2Name = [dictionary objectForKey:@"distributorLevel2Name"];
    self.relTime = [dictionary objectForKey:@"relTime"];
    self.source = [dictionary objectForKey:@"source"];
    self.aliasName = [dictionary objectForKey:@"aliasName"];
    self.contracter = [dictionary objectForKey:@"contracter"];
    self.tel = [dictionary objectForKey:@"tel"];
    self.email = [dictionary objectForKey:@"email"];
    self.remark = [dictionary objectForKey:@"remark"];
    self.dept = [dictionary objectForKey:@"dept"];
    self.deptName = [dictionary objectForKey:@"deptName"];
    self.createTime = [dictionary objectForKey:@"createTime"];
    self.createUser = [dictionary objectForKey:@"createUser"];
    self.updateTime = [dictionary objectForKey:@"updateTime"];
    self.accountTypeName = [dictionary objectForKey:@"accountTypeName"];
    self.realName = [dictionary objectForKey:@"realName"];
    self.name = [dictionary objectForKey:@"name"];
    self.updateUser = [dictionary objectForKey:@"updateUser"];
    return self;
}
 @end
@implementation ReturnItemDTO
-(id) initWithId:(NSNumber*) idValue
      itemId:(NSNumber*)itemId
      itemName:(NSString*)itemName
      deptId:(NSNumber*)deptId
      deptName:(NSString*)deptName
      distributorType:(NSNumber*)distributorType
      returnType:(NSNumber*)returnType
      conditionItem:(NSString*)conditionItem
      circleType:(NSNumber*)circleType
      circleName:(NSString*)circleName
      remark:(NSString*)remark
      createTime:(NSString*)createTime
      createUser:(NSString*)createUser
      updateTime:(NSString*)updateTime
      updateUser:(NSString*)updateUser
      yn:(NSNumber*)yn
      itemNameLike:(NSString*)itemNameLike { 
     self.idValue = idValue;               
     self.itemId = itemId;               
     self.itemName = itemName;               
     self.deptId = deptId;               
     self.deptName = deptName;               
     self.distributorType = distributorType;               
     self.returnType = returnType;               
     self.conditionItem = conditionItem;               
     self.circleType = circleType;               
     self.circleName = circleName;               
     self.remark = remark;               
     self.createTime = createTime;               
     self.createUser = createUser;               
     self.updateTime = updateTime;               
     self.updateUser = updateUser;               
     self.yn = yn;               
     self.itemNameLike = itemNameLike;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self idValue])
    {
        [result setValue:[self idValue] forKey:@"id"];
    }
    if([self itemId])
    {
        [result setValue:[self itemId] forKey:@"itemId"];
    }
    if([self itemName])
    {
        [result setValue:[self itemName] forKey:@"itemName"];
    }
    if([self deptId])
    {
        [result setValue:[self deptId] forKey:@"deptId"];
    }
    if([self deptName])
    {
        [result setValue:[self deptName] forKey:@"deptName"];
    }
    if([self distributorType])
    {
        [result setValue:[self distributorType] forKey:@"distributorType"];
    }
    if([self returnType])
    {
        [result setValue:[self returnType] forKey:@"returnType"];
    }
    if([self conditionItem])
    {
        [result setValue:[self conditionItem] forKey:@"conditionItem"];
    }
    if([self circleType])
    {
        [result setValue:[self circleType] forKey:@"circleType"];
    }
    if([self circleName])
    {
        [result setValue:[self circleName] forKey:@"circleName"];
    }
    if([self remark])
    {
        [result setValue:[self remark] forKey:@"remark"];
    }
    if([self createTime])
    {
        [result setValue:[self createTime] forKey:@"createTime"];
    }
    if([self createUser])
    {
        [result setValue:[self createUser] forKey:@"createUser"];
    }
    if([self updateTime])
    {
        [result setValue:[self updateTime] forKey:@"updateTime"];
    }
    if([self updateUser])
    {
        [result setValue:[self updateUser] forKey:@"updateUser"];
    }
    if([self yn])
    {
        [result setValue:[self yn] forKey:@"yn"];
    }
    if([self itemNameLike])
    {
        [result setValue:[self itemNameLike] forKey:@"itemNameLike"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.idValue = [dictionary objectForKey:@"id"];
    self.itemId = [dictionary objectForKey:@"itemId"];
    self.itemName = [dictionary objectForKey:@"itemName"];
    self.deptId = [dictionary objectForKey:@"deptId"];
    self.deptName = [dictionary objectForKey:@"deptName"];
    self.distributorType = [dictionary objectForKey:@"distributorType"];
    self.returnType = [dictionary objectForKey:@"returnType"];
    self.conditionItem = [dictionary objectForKey:@"conditionItem"];
    self.circleType = [dictionary objectForKey:@"circleType"];
    self.circleName = [dictionary objectForKey:@"circleName"];
    self.remark = [dictionary objectForKey:@"remark"];
    self.createTime = [dictionary objectForKey:@"createTime"];
    self.createUser = [dictionary objectForKey:@"createUser"];
    self.updateTime = [dictionary objectForKey:@"updateTime"];
    self.updateUser = [dictionary objectForKey:@"updateUser"];
    self.yn = [dictionary objectForKey:@"yn"];
    self.itemNameLike = [dictionary objectForKey:@"itemNameLike"];
    return self;
}
 @end
@implementation OperateAuthorityQuery
-(id) initWithId:(NSNumber*) idValue
      deptId:(NSNumber*)deptId
      deptName:(NSString*)deptName
      operatorValue:(NSString*)operatorValue
      createTime:(NSString*)createTime
      createUser:(NSString*)createUser
      updateTime:(NSString*)updateTime
      updateUser:(NSString*)updateUser
      yn:(NSNumber*)yn
      pageIndex:(NSNumber*)pageIndex
      pageSize:(NSNumber*)pageSize
      offset:(NSNumber*)offset { 
     self.idValue = idValue;               
     self.deptId = deptId;               
     self.deptName = deptName;               
     self.operatorValue = operatorValue;               
     self.createTime = createTime;               
     self.createUser = createUser;               
     self.updateTime = updateTime;               
     self.updateUser = updateUser;               
     self.yn = yn;               
     self.pageIndex = pageIndex;               
     self.pageSize = pageSize;               
     self.offset = offset;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self idValue])
    {
        [result setValue:[self idValue] forKey:@"id"];
    }
    if([self deptId])
    {
        [result setValue:[self deptId] forKey:@"deptId"];
    }
    if([self deptName])
    {
        [result setValue:[self deptName] forKey:@"deptName"];
    }
    if([self operatorValue])
    {
        [result setValue:[self operatorValue] forKey:@"operator"];
    }
    if([self createTime])
    {
        [result setValue:[self createTime] forKey:@"createTime"];
    }
    if([self createUser])
    {
        [result setValue:[self createUser] forKey:@"createUser"];
    }
    if([self updateTime])
    {
        [result setValue:[self updateTime] forKey:@"updateTime"];
    }
    if([self updateUser])
    {
        [result setValue:[self updateUser] forKey:@"updateUser"];
    }
    if([self yn])
    {
        [result setValue:[self yn] forKey:@"yn"];
    }
    if([self pageIndex])
    {
        [result setValue:[self pageIndex] forKey:@"pageIndex"];
    }
    if([self pageSize])
    {
        [result setValue:[self pageSize] forKey:@"pageSize"];
    }
    if([self offset])
    {
        [result setValue:[self offset] forKey:@"offset"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.idValue = [dictionary objectForKey:@"id"];
    self.deptId = [dictionary objectForKey:@"deptId"];
    self.deptName = [dictionary objectForKey:@"deptName"];
    self.operatorValue = [dictionary objectForKey:@"operator"];
    self.createTime = [dictionary objectForKey:@"createTime"];
    self.createUser = [dictionary objectForKey:@"createUser"];
    self.updateTime = [dictionary objectForKey:@"updateTime"];
    self.updateUser = [dictionary objectForKey:@"updateUser"];
    self.yn = [dictionary objectForKey:@"yn"];
    self.pageIndex = [dictionary objectForKey:@"pageIndex"];
    self.pageSize = [dictionary objectForKey:@"pageSize"];
    self.offset = [dictionary objectForKey:@"offset"];
    return self;
}
 @end
@implementation ReturnBillDetailResult
-(id) initWithId:(NSNumber*) idValue
      distributorId:(NSString*)distributorId
      distributorType:(NSNumber*)distributorType
      generateTime:(NSString*)generateTime
      returnType:(NSNumber*)returnType
      itemId:(NSNumber*)itemId
      itemName:(NSString*)itemName
      circleType:(NSNumber*)circleType
      circleName:(NSNumber*)circleName
      circleValue:(NSNumber*)circleValue
      circleValueName:(NSString*)circleValueName
      circleBegin:(NSString*)circleBegin
      circleEnd:(NSString*)circleEnd
      returnMount:(NSNumber*)returnMount
      amount:(NSNumber*)amount
      conditionValue:(NSString*)conditionValue
      conditionValueName:(NSString*)conditionValueName
      returnFlag:(NSNumber*)returnFlag
      returnRatio:(NSNumber*)returnRatio
      returnRatioName:(NSString*)returnRatioName
      returnOrderId:(NSString*)returnOrderId
      deptId:(NSNumber*)deptId
      deptName:(NSString*)deptName
      status:(NSNumber*)status
      createTime:(NSString*)createTime
      createUser:(NSString*)createUser
      updateTime:(NSString*)updateTime
      updateUser:(NSString*)updateUser
      yn:(NSNumber*)yn { 
     self.idValue = idValue;               
     self.distributorId = distributorId;               
     self.distributorType = distributorType;               
     self.generateTime = generateTime;               
     self.returnType = returnType;               
     self.itemId = itemId;               
     self.itemName = itemName;               
     self.circleType = circleType;               
     self.circleName = circleName;               
     self.circleValue = circleValue;               
     self.circleValueName = circleValueName;               
     self.circleBegin = circleBegin;               
     self.circleEnd = circleEnd;               
     self.returnMount = returnMount;               
     self.amount = amount;               
     self.conditionValue = conditionValue;               
     self.conditionValueName = conditionValueName;               
     self.returnFlag = returnFlag;               
     self.returnRatio = returnRatio;               
     self.returnRatioName = returnRatioName;               
     self.returnOrderId = returnOrderId;               
     self.deptId = deptId;               
     self.deptName = deptName;               
     self.status = status;               
     self.createTime = createTime;               
     self.createUser = createUser;               
     self.updateTime = updateTime;               
     self.updateUser = updateUser;               
     self.yn = yn;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self idValue])
    {
        [result setValue:[self idValue] forKey:@"id"];
    }
    if([self distributorId])
    {
        [result setValue:[self distributorId] forKey:@"distributorId"];
    }
    if([self distributorType])
    {
        [result setValue:[self distributorType] forKey:@"distributorType"];
    }
    if([self generateTime])
    {
        [result setValue:[self generateTime] forKey:@"generateTime"];
    }
    if([self returnType])
    {
        [result setValue:[self returnType] forKey:@"returnType"];
    }
    if([self itemId])
    {
        [result setValue:[self itemId] forKey:@"itemId"];
    }
    if([self itemName])
    {
        [result setValue:[self itemName] forKey:@"itemName"];
    }
    if([self circleType])
    {
        [result setValue:[self circleType] forKey:@"circleType"];
    }
    if([self circleName])
    {
        [result setValue:[self circleName] forKey:@"circleName"];
    }
    if([self circleValue])
    {
        [result setValue:[self circleValue] forKey:@"circleValue"];
    }
    if([self circleValueName])
    {
        [result setValue:[self circleValueName] forKey:@"circleValueName"];
    }
    if([self circleBegin])
    {
        [result setValue:[self circleBegin] forKey:@"circleBegin"];
    }
    if([self circleEnd])
    {
        [result setValue:[self circleEnd] forKey:@"circleEnd"];
    }
    if([self returnMount])
    {
        [result setValue:[self returnMount] forKey:@"returnMount"];
    }
    if([self amount])
    {
        [result setValue:[self amount] forKey:@"amount"];
    }
    if([self conditionValue])
    {
        [result setValue:[self conditionValue] forKey:@"conditionValue"];
    }
    if([self conditionValueName])
    {
        [result setValue:[self conditionValueName] forKey:@"conditionValueName"];
    }
    if([self returnFlag])
    {
        [result setValue:[self returnFlag] forKey:@"returnFlag"];
    }
    if([self returnRatio])
    {
        [result setValue:[self returnRatio] forKey:@"returnRatio"];
    }
    if([self returnRatioName])
    {
        [result setValue:[self returnRatioName] forKey:@"returnRatioName"];
    }
    if([self returnOrderId])
    {
        [result setValue:[self returnOrderId] forKey:@"returnOrderId"];
    }
    if([self deptId])
    {
        [result setValue:[self deptId] forKey:@"deptId"];
    }
    if([self deptName])
    {
        [result setValue:[self deptName] forKey:@"deptName"];
    }
    if([self status])
    {
        [result setValue:[self status] forKey:@"status"];
    }
    if([self createTime])
    {
        [result setValue:[self createTime] forKey:@"createTime"];
    }
    if([self createUser])
    {
        [result setValue:[self createUser] forKey:@"createUser"];
    }
    if([self updateTime])
    {
        [result setValue:[self updateTime] forKey:@"updateTime"];
    }
    if([self updateUser])
    {
        [result setValue:[self updateUser] forKey:@"updateUser"];
    }
    if([self yn])
    {
        [result setValue:[self yn] forKey:@"yn"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.idValue = [dictionary objectForKey:@"id"];
    self.distributorId = [dictionary objectForKey:@"distributorId"];
    self.distributorType = [dictionary objectForKey:@"distributorType"];
    self.generateTime = [dictionary objectForKey:@"generateTime"];
    self.returnType = [dictionary objectForKey:@"returnType"];
    self.itemId = [dictionary objectForKey:@"itemId"];
    self.itemName = [dictionary objectForKey:@"itemName"];
    self.circleType = [dictionary objectForKey:@"circleType"];
    self.circleName = [dictionary objectForKey:@"circleName"];
    self.circleValue = [dictionary objectForKey:@"circleValue"];
    self.circleValueName = [dictionary objectForKey:@"circleValueName"];
    self.circleBegin = [dictionary objectForKey:@"circleBegin"];
    self.circleEnd = [dictionary objectForKey:@"circleEnd"];
    self.returnMount = [dictionary objectForKey:@"returnMount"];
    self.amount = [dictionary objectForKey:@"amount"];
    self.conditionValue = [dictionary objectForKey:@"conditionValue"];
    self.conditionValueName = [dictionary objectForKey:@"conditionValueName"];
    self.returnFlag = [dictionary objectForKey:@"returnFlag"];
    self.returnRatio = [dictionary objectForKey:@"returnRatio"];
    self.returnRatioName = [dictionary objectForKey:@"returnRatioName"];
    self.returnOrderId = [dictionary objectForKey:@"returnOrderId"];
    self.deptId = [dictionary objectForKey:@"deptId"];
    self.deptName = [dictionary objectForKey:@"deptName"];
    self.status = [dictionary objectForKey:@"status"];
    self.createTime = [dictionary objectForKey:@"createTime"];
    self.createUser = [dictionary objectForKey:@"createUser"];
    self.updateTime = [dictionary objectForKey:@"updateTime"];
    self.updateUser = [dictionary objectForKey:@"updateUser"];
    self.yn = [dictionary objectForKey:@"yn"];
    return self;
}
 @end
@implementation ExtraInfo
-(id) initWithName:(NSString*) name
      value:(NSString*)value { 
     self.name = name;               
     self.value = value;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self name])
    {
        [result setValue:[self name] forKey:@"name"];
    }
    if([self value])
    {
        [result setValue:[self value] forKey:@"value"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.name = [dictionary objectForKey:@"name"];
    self.value = [dictionary objectForKey:@"value"];
    return self;
}
 @end
@implementation OperateAuthorityDTO
-(id) initWithId:(NSNumber*) idValue
      deptId:(NSNumber*)deptId
      deptName:(NSString*)deptName
      operatorValue:(NSString*)operatorValue
      createTime:(NSString*)createTime
      createUser:(NSString*)createUser
      updateTime:(NSString*)updateTime
      updateUser:(NSString*)updateUser
      yn:(NSNumber*)yn { 
     self.idValue = idValue;               
     self.deptId = deptId;               
     self.deptName = deptName;               
     self.operatorValue = operatorValue;               
     self.createTime = createTime;               
     self.createUser = createUser;               
     self.updateTime = updateTime;               
     self.updateUser = updateUser;               
     self.yn = yn;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self idValue])
    {
        [result setValue:[self idValue] forKey:@"id"];
    }
    if([self deptId])
    {
        [result setValue:[self deptId] forKey:@"deptId"];
    }
    if([self deptName])
    {
        [result setValue:[self deptName] forKey:@"deptName"];
    }
    if([self operatorValue])
    {
        [result setValue:[self operatorValue] forKey:@"operator"];
    }
    if([self createTime])
    {
        [result setValue:[self createTime] forKey:@"createTime"];
    }
    if([self createUser])
    {
        [result setValue:[self createUser] forKey:@"createUser"];
    }
    if([self updateTime])
    {
        [result setValue:[self updateTime] forKey:@"updateTime"];
    }
    if([self updateUser])
    {
        [result setValue:[self updateUser] forKey:@"updateUser"];
    }
    if([self yn])
    {
        [result setValue:[self yn] forKey:@"yn"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.idValue = [dictionary objectForKey:@"id"];
    self.deptId = [dictionary objectForKey:@"deptId"];
    self.deptName = [dictionary objectForKey:@"deptName"];
    self.operatorValue = [dictionary objectForKey:@"operator"];
    self.createTime = [dictionary objectForKey:@"createTime"];
    self.createUser = [dictionary objectForKey:@"createUser"];
    self.updateTime = [dictionary objectForKey:@"updateTime"];
    self.updateUser = [dictionary objectForKey:@"updateUser"];
    self.yn = [dictionary objectForKey:@"yn"];
    return self;
}
 @end
@implementation ReturnBillStatusResult
-(id) initWithId:(NSNumber*) idValue
      retrunBillId:(NSString*)retrunBillId
      status:(NSNumber*)status
      statusName:(NSString*)statusName
      operatorValue:(NSString*)operatorValue
      remark:(NSString*)remark
      createTime:(NSString*)createTime
      createUser:(NSString*)createUser
      updateTime:(NSString*)updateTime
      updateUser:(NSString*)updateUser
      yn:(NSNumber*)yn { 
     self.idValue = idValue;               
     self.retrunBillId = retrunBillId;               
     self.status = status;               
     self.statusName = statusName;               
     self.operatorValue = operatorValue;               
     self.remark = remark;               
     self.createTime = createTime;               
     self.createUser = createUser;               
     self.updateTime = updateTime;               
     self.updateUser = updateUser;               
     self.yn = yn;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self idValue])
    {
        [result setValue:[self idValue] forKey:@"id"];
    }
    if([self retrunBillId])
    {
        [result setValue:[self retrunBillId] forKey:@"retrunBillId"];
    }
    if([self status])
    {
        [result setValue:[self status] forKey:@"status"];
    }
    if([self statusName])
    {
        [result setValue:[self statusName] forKey:@"statusName"];
    }
    if([self operatorValue])
    {
        [result setValue:[self operatorValue] forKey:@"operator"];
    }
    if([self remark])
    {
        [result setValue:[self remark] forKey:@"remark"];
    }
    if([self createTime])
    {
        [result setValue:[self createTime] forKey:@"createTime"];
    }
    if([self createUser])
    {
        [result setValue:[self createUser] forKey:@"createUser"];
    }
    if([self updateTime])
    {
        [result setValue:[self updateTime] forKey:@"updateTime"];
    }
    if([self updateUser])
    {
        [result setValue:[self updateUser] forKey:@"updateUser"];
    }
    if([self yn])
    {
        [result setValue:[self yn] forKey:@"yn"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.idValue = [dictionary objectForKey:@"id"];
    self.retrunBillId = [dictionary objectForKey:@"retrunBillId"];
    self.status = [dictionary objectForKey:@"status"];
    self.statusName = [dictionary objectForKey:@"statusName"];
    self.operatorValue = [dictionary objectForKey:@"operator"];
    self.remark = [dictionary objectForKey:@"remark"];
    self.createTime = [dictionary objectForKey:@"createTime"];
    self.createUser = [dictionary objectForKey:@"createUser"];
    self.updateTime = [dictionary objectForKey:@"updateTime"];
    self.updateUser = [dictionary objectForKey:@"updateUser"];
    self.yn = [dictionary objectForKey:@"yn"];
    return self;
}
 @end
@implementation DistributorResult
-(id) initWithDistributorId:(NSString*) distributorId
      distributorName:(NSString*)distributorName
      pin:(NSString*)pin
      contractNo:(NSString*)contractNo
      businessLicense:(NSString*)businessLicense
      legalRepresentative:(NSString*)legalRepresentative
      businessLicensePic:(NSString*)businessLicensePic
      businessDesc:(NSString*)businessDesc
      workAddress:(NSString*)workAddress
      contracter:(NSString*)contracter
      tel:(NSString*)tel
      email:(NSString*)email
      region:(NSString*)region
      settleTime:(NSString*)settleTime
      status:(NSNumber*)status
      reason:(NSString*)reason
      distributorLevel:(NSNumber*)distributorLevel
      distributorType:(NSNumber*)distributorType
      parentDistributorId:(NSString*)parentDistributorId
      dept:(NSNumber*)dept
      deptName:(NSString*)deptName
      erp:(NSString*)erp
      customerCount:(NSNumber*)customerCount
      parentDistributorName:(NSString*)parentDistributorName
      settleTimeStr:(NSString*)settleTimeStr
      level:(NSNumber*)level { 
     self.distributorId = distributorId;               
     self.distributorName = distributorName;               
     self.pin = pin;               
     self.contractNo = contractNo;               
     self.businessLicense = businessLicense;               
     self.legalRepresentative = legalRepresentative;               
     self.businessLicensePic = businessLicensePic;               
     self.businessDesc = businessDesc;               
     self.workAddress = workAddress;               
     self.contracter = contracter;               
     self.tel = tel;               
     self.email = email;               
     self.region = region;               
     self.settleTime = settleTime;               
     self.status = status;               
     self.reason = reason;               
     self.distributorLevel = distributorLevel;               
     self.distributorType = distributorType;               
     self.parentDistributorId = parentDistributorId;               
     self.dept = dept;               
     self.deptName = deptName;               
     self.erp = erp;               
     self.customerCount = customerCount;               
     self.parentDistributorName = parentDistributorName;               
     self.settleTimeStr = settleTimeStr;               
     self.level = level;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self distributorId])
    {
        [result setValue:[self distributorId] forKey:@"distributorId"];
    }
    if([self distributorName])
    {
        [result setValue:[self distributorName] forKey:@"distributorName"];
    }
    if([self pin])
    {
        [result setValue:[self pin] forKey:@"pin"];
    }
    if([self contractNo])
    {
        [result setValue:[self contractNo] forKey:@"contractNo"];
    }
    if([self businessLicense])
    {
        [result setValue:[self businessLicense] forKey:@"businessLicense"];
    }
    if([self legalRepresentative])
    {
        [result setValue:[self legalRepresentative] forKey:@"legalRepresentative"];
    }
    if([self businessLicensePic])
    {
        [result setValue:[self businessLicensePic] forKey:@"businessLicensePic"];
    }
    if([self businessDesc])
    {
        [result setValue:[self businessDesc] forKey:@"businessDesc"];
    }
    if([self workAddress])
    {
        [result setValue:[self workAddress] forKey:@"workAddress"];
    }
    if([self contracter])
    {
        [result setValue:[self contracter] forKey:@"contracter"];
    }
    if([self tel])
    {
        [result setValue:[self tel] forKey:@"tel"];
    }
    if([self email])
    {
        [result setValue:[self email] forKey:@"email"];
    }
    if([self region])
    {
        [result setValue:[self region] forKey:@"region"];
    }
    if([self settleTime])
    {
        [result setValue:[self settleTime] forKey:@"settleTime"];
    }
    if([self status])
    {
        [result setValue:[self status] forKey:@"status"];
    }
    if([self reason])
    {
        [result setValue:[self reason] forKey:@"reason"];
    }
    if([self distributorLevel])
    {
        [result setValue:[self distributorLevel] forKey:@"distributorLevel"];
    }
    if([self distributorType])
    {
        [result setValue:[self distributorType] forKey:@"distributorType"];
    }
    if([self parentDistributorId])
    {
        [result setValue:[self parentDistributorId] forKey:@"parentDistributorId"];
    }
    if([self dept])
    {
        [result setValue:[self dept] forKey:@"dept"];
    }
    if([self deptName])
    {
        [result setValue:[self deptName] forKey:@"deptName"];
    }
    if([self erp])
    {
        [result setValue:[self erp] forKey:@"erp"];
    }
    if([self customerCount])
    {
        [result setValue:[self customerCount] forKey:@"customerCount"];
    }
    if([self parentDistributorName])
    {
        [result setValue:[self parentDistributorName] forKey:@"parentDistributorName"];
    }
    if([self settleTimeStr])
    {
        [result setValue:[self settleTimeStr] forKey:@"settleTimeStr"];
    }
    if([self level])
    {
        [result setValue:[self level] forKey:@"level"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.distributorId = [dictionary objectForKey:@"distributorId"];
    self.distributorName = [dictionary objectForKey:@"distributorName"];
    self.pin = [dictionary objectForKey:@"pin"];
    self.contractNo = [dictionary objectForKey:@"contractNo"];
    self.businessLicense = [dictionary objectForKey:@"businessLicense"];
    self.legalRepresentative = [dictionary objectForKey:@"legalRepresentative"];
    self.businessLicensePic = [dictionary objectForKey:@"businessLicensePic"];
    self.businessDesc = [dictionary objectForKey:@"businessDesc"];
    self.workAddress = [dictionary objectForKey:@"workAddress"];
    self.contracter = [dictionary objectForKey:@"contracter"];
    self.tel = [dictionary objectForKey:@"tel"];
    self.email = [dictionary objectForKey:@"email"];
    self.region = [dictionary objectForKey:@"region"];
    self.settleTime = [dictionary objectForKey:@"settleTime"];
    self.status = [dictionary objectForKey:@"status"];
    self.reason = [dictionary objectForKey:@"reason"];
    self.distributorLevel = [dictionary objectForKey:@"distributorLevel"];
    self.distributorType = [dictionary objectForKey:@"distributorType"];
    self.parentDistributorId = [dictionary objectForKey:@"parentDistributorId"];
    self.dept = [dictionary objectForKey:@"dept"];
    self.deptName = [dictionary objectForKey:@"deptName"];
    self.erp = [dictionary objectForKey:@"erp"];
    self.customerCount = [dictionary objectForKey:@"customerCount"];
    self.parentDistributorName = [dictionary objectForKey:@"parentDistributorName"];
    self.settleTimeStr = [dictionary objectForKey:@"settleTimeStr"];
    self.level = [dictionary objectForKey:@"level"];
    return self;
}
 @end
@implementation ReturnItemQuery
-(id) initWithId:(NSNumber*) idValue
      itemId:(NSNumber*)itemId
      itemName:(NSString*)itemName
      deptId:(NSNumber*)deptId
      deptName:(NSString*)deptName
      distributorType:(NSNumber*)distributorType
      returnType:(NSNumber*)returnType
      conditionItem:(NSString*)conditionItem
      circleType:(NSNumber*)circleType
      circleName:(NSString*)circleName
      remark:(NSString*)remark
      createTime:(NSString*)createTime
      createUser:(NSString*)createUser
      updateTime:(NSString*)updateTime
      updateUser:(NSString*)updateUser
      yn:(NSNumber*)yn
      itemNameLike:(NSString*)itemNameLike
      pageIndex:(NSNumber*)pageIndex
      pageSize:(NSNumber*)pageSize
      offset:(NSNumber*)offset { 
     self.idValue = idValue;               
     self.itemId = itemId;               
     self.itemName = itemName;               
     self.deptId = deptId;               
     self.deptName = deptName;               
     self.distributorType = distributorType;               
     self.returnType = returnType;               
     self.conditionItem = conditionItem;               
     self.circleType = circleType;               
     self.circleName = circleName;               
     self.remark = remark;               
     self.createTime = createTime;               
     self.createUser = createUser;               
     self.updateTime = updateTime;               
     self.updateUser = updateUser;               
     self.yn = yn;               
     self.itemNameLike = itemNameLike;               
     self.pageIndex = pageIndex;               
     self.pageSize = pageSize;               
     self.offset = offset;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self idValue])
    {
        [result setValue:[self idValue] forKey:@"id"];
    }
    if([self itemId])
    {
        [result setValue:[self itemId] forKey:@"itemId"];
    }
    if([self itemName])
    {
        [result setValue:[self itemName] forKey:@"itemName"];
    }
    if([self deptId])
    {
        [result setValue:[self deptId] forKey:@"deptId"];
    }
    if([self deptName])
    {
        [result setValue:[self deptName] forKey:@"deptName"];
    }
    if([self distributorType])
    {
        [result setValue:[self distributorType] forKey:@"distributorType"];
    }
    if([self returnType])
    {
        [result setValue:[self returnType] forKey:@"returnType"];
    }
    if([self conditionItem])
    {
        [result setValue:[self conditionItem] forKey:@"conditionItem"];
    }
    if([self circleType])
    {
        [result setValue:[self circleType] forKey:@"circleType"];
    }
    if([self circleName])
    {
        [result setValue:[self circleName] forKey:@"circleName"];
    }
    if([self remark])
    {
        [result setValue:[self remark] forKey:@"remark"];
    }
    if([self createTime])
    {
        [result setValue:[self createTime] forKey:@"createTime"];
    }
    if([self createUser])
    {
        [result setValue:[self createUser] forKey:@"createUser"];
    }
    if([self updateTime])
    {
        [result setValue:[self updateTime] forKey:@"updateTime"];
    }
    if([self updateUser])
    {
        [result setValue:[self updateUser] forKey:@"updateUser"];
    }
    if([self yn])
    {
        [result setValue:[self yn] forKey:@"yn"];
    }
    if([self itemNameLike])
    {
        [result setValue:[self itemNameLike] forKey:@"itemNameLike"];
    }
    if([self pageIndex])
    {
        [result setValue:[self pageIndex] forKey:@"pageIndex"];
    }
    if([self pageSize])
    {
        [result setValue:[self pageSize] forKey:@"pageSize"];
    }
    if([self offset])
    {
        [result setValue:[self offset] forKey:@"offset"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.idValue = [dictionary objectForKey:@"id"];
    self.itemId = [dictionary objectForKey:@"itemId"];
    self.itemName = [dictionary objectForKey:@"itemName"];
    self.deptId = [dictionary objectForKey:@"deptId"];
    self.deptName = [dictionary objectForKey:@"deptName"];
    self.distributorType = [dictionary objectForKey:@"distributorType"];
    self.returnType = [dictionary objectForKey:@"returnType"];
    self.conditionItem = [dictionary objectForKey:@"conditionItem"];
    self.circleType = [dictionary objectForKey:@"circleType"];
    self.circleName = [dictionary objectForKey:@"circleName"];
    self.remark = [dictionary objectForKey:@"remark"];
    self.createTime = [dictionary objectForKey:@"createTime"];
    self.createUser = [dictionary objectForKey:@"createUser"];
    self.updateTime = [dictionary objectForKey:@"updateTime"];
    self.updateUser = [dictionary objectForKey:@"updateUser"];
    self.yn = [dictionary objectForKey:@"yn"];
    self.itemNameLike = [dictionary objectForKey:@"itemNameLike"];
    self.pageIndex = [dictionary objectForKey:@"pageIndex"];
    self.pageSize = [dictionary objectForKey:@"pageSize"];
    self.offset = [dictionary objectForKey:@"offset"];
    return self;
}
 @end
@implementation Department
-(id) initWithId:(NSNumber*) idValue
      depId:(NSString*)depId
      depName:(NSString*)depName
      isDeleted:(NSNumber*)isDeleted { 
     self.idValue = idValue;               
     self.depId = depId;               
     self.depName = depName;               
     self.isDeleted = isDeleted;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self idValue])
    {
        [result setValue:[self idValue] forKey:@"id"];
    }
    if([self depId])
    {
        [result setValue:[self depId] forKey:@"depId"];
    }
    if([self depName])
    {
        [result setValue:[self depName] forKey:@"depName"];
    }
    if([self isDeleted])
    {
        [result setValue:[self isDeleted] forKey:@"isDeleted"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.idValue = [dictionary objectForKey:@"id"];
    self.depId = [dictionary objectForKey:@"depId"];
    self.depName = [dictionary objectForKey:@"depName"];
    self.isDeleted = [dictionary objectForKey:@"isDeleted"];
    return self;
}
 @end
@implementation ReturnRuleQuery
-(id) initWithId:(NSNumber*) idValue
      deptId:(NSNumber*)deptId
      deptName:(NSString*)deptName
      distributorType:(NSNumber*)distributorType
      isReturn:(NSNumber*)isReturn
      circleType:(NSNumber*)circleType
      circleName:(NSString*)circleName
      createTime:(NSString*)createTime
      createUser:(NSString*)createUser
      updateTime:(NSString*)updateTime
      updateUser:(NSString*)updateUser
      yn:(NSNumber*)yn
      pageIndex:(NSNumber*)pageIndex
      pageSize:(NSNumber*)pageSize
      offset:(NSNumber*)offset { 
     self.idValue = idValue;               
     self.deptId = deptId;               
     self.deptName = deptName;               
     self.distributorType = distributorType;               
     self.isReturn = isReturn;               
     self.circleType = circleType;               
     self.circleName = circleName;               
     self.createTime = createTime;               
     self.createUser = createUser;               
     self.updateTime = updateTime;               
     self.updateUser = updateUser;               
     self.yn = yn;               
     self.pageIndex = pageIndex;               
     self.pageSize = pageSize;               
     self.offset = offset;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self idValue])
    {
        [result setValue:[self idValue] forKey:@"id"];
    }
    if([self deptId])
    {
        [result setValue:[self deptId] forKey:@"deptId"];
    }
    if([self deptName])
    {
        [result setValue:[self deptName] forKey:@"deptName"];
    }
    if([self distributorType])
    {
        [result setValue:[self distributorType] forKey:@"distributorType"];
    }
    if([self isReturn])
    {
        [result setValue:[self isReturn] forKey:@"isReturn"];
    }
    if([self circleType])
    {
        [result setValue:[self circleType] forKey:@"circleType"];
    }
    if([self circleName])
    {
        [result setValue:[self circleName] forKey:@"circleName"];
    }
    if([self createTime])
    {
        [result setValue:[self createTime] forKey:@"createTime"];
    }
    if([self createUser])
    {
        [result setValue:[self createUser] forKey:@"createUser"];
    }
    if([self updateTime])
    {
        [result setValue:[self updateTime] forKey:@"updateTime"];
    }
    if([self updateUser])
    {
        [result setValue:[self updateUser] forKey:@"updateUser"];
    }
    if([self yn])
    {
        [result setValue:[self yn] forKey:@"yn"];
    }
    if([self pageIndex])
    {
        [result setValue:[self pageIndex] forKey:@"pageIndex"];
    }
    if([self pageSize])
    {
        [result setValue:[self pageSize] forKey:@"pageSize"];
    }
    if([self offset])
    {
        [result setValue:[self offset] forKey:@"offset"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.idValue = [dictionary objectForKey:@"id"];
    self.deptId = [dictionary objectForKey:@"deptId"];
    self.deptName = [dictionary objectForKey:@"deptName"];
    self.distributorType = [dictionary objectForKey:@"distributorType"];
    self.isReturn = [dictionary objectForKey:@"isReturn"];
    self.circleType = [dictionary objectForKey:@"circleType"];
    self.circleName = [dictionary objectForKey:@"circleName"];
    self.createTime = [dictionary objectForKey:@"createTime"];
    self.createUser = [dictionary objectForKey:@"createUser"];
    self.updateTime = [dictionary objectForKey:@"updateTime"];
    self.updateUser = [dictionary objectForKey:@"updateUser"];
    self.yn = [dictionary objectForKey:@"yn"];
    self.pageIndex = [dictionary objectForKey:@"pageIndex"];
    self.pageSize = [dictionary objectForKey:@"pageSize"];
    self.offset = [dictionary objectForKey:@"offset"];
    return self;
}
 @end
@implementation DistributorDTO
-(id) initWithDistributorId:(NSString*) distributorId
      distributorName:(NSString*)distributorName
      pin:(NSString*)pin
      contractNo:(NSString*)contractNo
      businessLicense:(NSString*)businessLicense
      legalRepresentative:(NSString*)legalRepresentative
      businessLicensePic:(NSString*)businessLicensePic
      businessDesc:(NSString*)businessDesc
      workAddress:(NSString*)workAddress
      contracter:(NSString*)contracter
      tel:(NSString*)tel
      email:(NSString*)email
      region:(NSString*)region
      settleTime:(NSString*)settleTime
      status:(NSNumber*)status
      reason:(NSString*)reason
      distributorLevel:(NSNumber*)distributorLevel
      distributorType:(NSNumber*)distributorType
      parentDistributorId:(NSString*)parentDistributorId
      bankCompanyName:(NSString*)bankCompanyName
      bankCardNo:(NSString*)bankCardNo
      bankBranchName:(NSString*)bankBranchName
      bankBranchNo:(NSString*)bankBranchNo
      contractSubject:(NSString*)contractSubject
      dept:(NSNumber*)dept
      erp:(NSString*)erp { 
     self.distributorId = distributorId;               
     self.distributorName = distributorName;               
     self.pin = pin;               
     self.contractNo = contractNo;               
     self.businessLicense = businessLicense;               
     self.legalRepresentative = legalRepresentative;               
     self.businessLicensePic = businessLicensePic;               
     self.businessDesc = businessDesc;               
     self.workAddress = workAddress;               
     self.contracter = contracter;               
     self.tel = tel;               
     self.email = email;               
     self.region = region;               
     self.settleTime = settleTime;               
     self.status = status;               
     self.reason = reason;               
     self.distributorLevel = distributorLevel;               
     self.distributorType = distributorType;               
     self.parentDistributorId = parentDistributorId;               
     self.bankCompanyName = bankCompanyName;               
     self.bankCardNo = bankCardNo;               
     self.bankBranchName = bankBranchName;               
     self.bankBranchNo = bankBranchNo;               
     self.contractSubject = contractSubject;               
     self.dept = dept;               
     self.erp = erp;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self distributorId])
    {
        [result setValue:[self distributorId] forKey:@"distributorId"];
    }
    if([self distributorName])
    {
        [result setValue:[self distributorName] forKey:@"distributorName"];
    }
    if([self pin])
    {
        [result setValue:[self pin] forKey:@"pin"];
    }
    if([self contractNo])
    {
        [result setValue:[self contractNo] forKey:@"contractNo"];
    }
    if([self businessLicense])
    {
        [result setValue:[self businessLicense] forKey:@"businessLicense"];
    }
    if([self legalRepresentative])
    {
        [result setValue:[self legalRepresentative] forKey:@"legalRepresentative"];
    }
    if([self businessLicensePic])
    {
        [result setValue:[self businessLicensePic] forKey:@"businessLicensePic"];
    }
    if([self businessDesc])
    {
        [result setValue:[self businessDesc] forKey:@"businessDesc"];
    }
    if([self workAddress])
    {
        [result setValue:[self workAddress] forKey:@"workAddress"];
    }
    if([self contracter])
    {
        [result setValue:[self contracter] forKey:@"contracter"];
    }
    if([self tel])
    {
        [result setValue:[self tel] forKey:@"tel"];
    }
    if([self email])
    {
        [result setValue:[self email] forKey:@"email"];
    }
    if([self region])
    {
        [result setValue:[self region] forKey:@"region"];
    }
    if([self settleTime])
    {
        [result setValue:[self settleTime] forKey:@"settleTime"];
    }
    if([self status])
    {
        [result setValue:[self status] forKey:@"status"];
    }
    if([self reason])
    {
        [result setValue:[self reason] forKey:@"reason"];
    }
    if([self distributorLevel])
    {
        [result setValue:[self distributorLevel] forKey:@"distributorLevel"];
    }
    if([self distributorType])
    {
        [result setValue:[self distributorType] forKey:@"distributorType"];
    }
    if([self parentDistributorId])
    {
        [result setValue:[self parentDistributorId] forKey:@"parentDistributorId"];
    }
    if([self bankCompanyName])
    {
        [result setValue:[self bankCompanyName] forKey:@"bankCompanyName"];
    }
    if([self bankCardNo])
    {
        [result setValue:[self bankCardNo] forKey:@"bankCardNo"];
    }
    if([self bankBranchName])
    {
        [result setValue:[self bankBranchName] forKey:@"bankBranchName"];
    }
    if([self bankBranchNo])
    {
        [result setValue:[self bankBranchNo] forKey:@"bankBranchNo"];
    }
    if([self contractSubject])
    {
        [result setValue:[self contractSubject] forKey:@"contractSubject"];
    }
    if([self dept])
    {
        [result setValue:[self dept] forKey:@"dept"];
    }
    if([self erp])
    {
        [result setValue:[self erp] forKey:@"erp"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.distributorId = [dictionary objectForKey:@"distributorId"];
    self.distributorName = [dictionary objectForKey:@"distributorName"];
    self.pin = [dictionary objectForKey:@"pin"];
    self.contractNo = [dictionary objectForKey:@"contractNo"];
    self.businessLicense = [dictionary objectForKey:@"businessLicense"];
    self.legalRepresentative = [dictionary objectForKey:@"legalRepresentative"];
    self.businessLicensePic = [dictionary objectForKey:@"businessLicensePic"];
    self.businessDesc = [dictionary objectForKey:@"businessDesc"];
    self.workAddress = [dictionary objectForKey:@"workAddress"];
    self.contracter = [dictionary objectForKey:@"contracter"];
    self.tel = [dictionary objectForKey:@"tel"];
    self.email = [dictionary objectForKey:@"email"];
    self.region = [dictionary objectForKey:@"region"];
    self.settleTime = [dictionary objectForKey:@"settleTime"];
    self.status = [dictionary objectForKey:@"status"];
    self.reason = [dictionary objectForKey:@"reason"];
    self.distributorLevel = [dictionary objectForKey:@"distributorLevel"];
    self.distributorType = [dictionary objectForKey:@"distributorType"];
    self.parentDistributorId = [dictionary objectForKey:@"parentDistributorId"];
    self.bankCompanyName = [dictionary objectForKey:@"bankCompanyName"];
    self.bankCardNo = [dictionary objectForKey:@"bankCardNo"];
    self.bankBranchName = [dictionary objectForKey:@"bankBranchName"];
    self.bankBranchNo = [dictionary objectForKey:@"bankBranchNo"];
    self.contractSubject = [dictionary objectForKey:@"contractSubject"];
    self.dept = [dictionary objectForKey:@"dept"];
    self.erp = [dictionary objectForKey:@"erp"];
    return self;
}
 @end
@implementation Distributor
-(id) initWithDistributorId:(NSString*) distributorId
      distributorName:(NSString*)distributorName
      pin:(NSString*)pin
      contractNo:(NSString*)contractNo
      businessLicense:(NSString*)businessLicense
      legalRepresentative:(NSString*)legalRepresentative
      businessLicensePic:(NSString*)businessLicensePic
      businessDesc:(NSString*)businessDesc
      workAddress:(NSString*)workAddress
      contracter:(NSString*)contracter
      tel:(NSString*)tel
      email:(NSString*)email
      region:(NSString*)region
      settleTime:(NSString*)settleTime
      status:(NSNumber*)status
      reason:(NSString*)reason
      distributorLevel:(NSNumber*)distributorLevel
      distributorType:(NSNumber*)distributorType
      parentDistributorId:(NSString*)parentDistributorId
      dept:(NSNumber*)dept
      erp:(NSString*)erp { 
     self.distributorId = distributorId;               
     self.distributorName = distributorName;               
     self.pin = pin;               
     self.contractNo = contractNo;               
     self.businessLicense = businessLicense;               
     self.legalRepresentative = legalRepresentative;               
     self.businessLicensePic = businessLicensePic;               
     self.businessDesc = businessDesc;               
     self.workAddress = workAddress;               
     self.contracter = contracter;               
     self.tel = tel;               
     self.email = email;               
     self.region = region;               
     self.settleTime = settleTime;               
     self.status = status;               
     self.reason = reason;               
     self.distributorLevel = distributorLevel;               
     self.distributorType = distributorType;               
     self.parentDistributorId = parentDistributorId;               
     self.dept = dept;               
     self.erp = erp;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self distributorId])
    {
        [result setValue:[self distributorId] forKey:@"distributorId"];
    }
    if([self distributorName])
    {
        [result setValue:[self distributorName] forKey:@"distributorName"];
    }
    if([self pin])
    {
        [result setValue:[self pin] forKey:@"pin"];
    }
    if([self contractNo])
    {
        [result setValue:[self contractNo] forKey:@"contractNo"];
    }
    if([self businessLicense])
    {
        [result setValue:[self businessLicense] forKey:@"businessLicense"];
    }
    if([self legalRepresentative])
    {
        [result setValue:[self legalRepresentative] forKey:@"legalRepresentative"];
    }
    if([self businessLicensePic])
    {
        [result setValue:[self businessLicensePic] forKey:@"businessLicensePic"];
    }
    if([self businessDesc])
    {
        [result setValue:[self businessDesc] forKey:@"businessDesc"];
    }
    if([self workAddress])
    {
        [result setValue:[self workAddress] forKey:@"workAddress"];
    }
    if([self contracter])
    {
        [result setValue:[self contracter] forKey:@"contracter"];
    }
    if([self tel])
    {
        [result setValue:[self tel] forKey:@"tel"];
    }
    if([self email])
    {
        [result setValue:[self email] forKey:@"email"];
    }
    if([self region])
    {
        [result setValue:[self region] forKey:@"region"];
    }
    if([self settleTime])
    {
        [result setValue:[self settleTime] forKey:@"settleTime"];
    }
    if([self status])
    {
        [result setValue:[self status] forKey:@"status"];
    }
    if([self reason])
    {
        [result setValue:[self reason] forKey:@"reason"];
    }
    if([self distributorLevel])
    {
        [result setValue:[self distributorLevel] forKey:@"distributorLevel"];
    }
    if([self distributorType])
    {
        [result setValue:[self distributorType] forKey:@"distributorType"];
    }
    if([self parentDistributorId])
    {
        [result setValue:[self parentDistributorId] forKey:@"parentDistributorId"];
    }
    if([self dept])
    {
        [result setValue:[self dept] forKey:@"dept"];
    }
    if([self erp])
    {
        [result setValue:[self erp] forKey:@"erp"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.distributorId = [dictionary objectForKey:@"distributorId"];
    self.distributorName = [dictionary objectForKey:@"distributorName"];
    self.pin = [dictionary objectForKey:@"pin"];
    self.contractNo = [dictionary objectForKey:@"contractNo"];
    self.businessLicense = [dictionary objectForKey:@"businessLicense"];
    self.legalRepresentative = [dictionary objectForKey:@"legalRepresentative"];
    self.businessLicensePic = [dictionary objectForKey:@"businessLicensePic"];
    self.businessDesc = [dictionary objectForKey:@"businessDesc"];
    self.workAddress = [dictionary objectForKey:@"workAddress"];
    self.contracter = [dictionary objectForKey:@"contracter"];
    self.tel = [dictionary objectForKey:@"tel"];
    self.email = [dictionary objectForKey:@"email"];
    self.region = [dictionary objectForKey:@"region"];
    self.settleTime = [dictionary objectForKey:@"settleTime"];
    self.status = [dictionary objectForKey:@"status"];
    self.reason = [dictionary objectForKey:@"reason"];
    self.distributorLevel = [dictionary objectForKey:@"distributorLevel"];
    self.distributorType = [dictionary objectForKey:@"distributorType"];
    self.parentDistributorId = [dictionary objectForKey:@"parentDistributorId"];
    self.dept = [dictionary objectForKey:@"dept"];
    self.erp = [dictionary objectForKey:@"erp"];
    return self;
}
 @end
@implementation OperateAuthority
-(id) initWithId:(NSNumber*) idValue
      deptId:(NSNumber*)deptId
      deptName:(NSString*)deptName
      operatorValue:(NSString*)operatorValue
      createTime:(NSString*)createTime
      createUser:(NSString*)createUser
      updateTime:(NSString*)updateTime
      updateUser:(NSString*)updateUser
      yn:(NSNumber*)yn { 
     self.idValue = idValue;               
     self.deptId = deptId;               
     self.deptName = deptName;               
     self.operatorValue = operatorValue;               
     self.createTime = createTime;               
     self.createUser = createUser;               
     self.updateTime = updateTime;               
     self.updateUser = updateUser;               
     self.yn = yn;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self idValue])
    {
        [result setValue:[self idValue] forKey:@"id"];
    }
    if([self deptId])
    {
        [result setValue:[self deptId] forKey:@"deptId"];
    }
    if([self deptName])
    {
        [result setValue:[self deptName] forKey:@"deptName"];
    }
    if([self operatorValue])
    {
        [result setValue:[self operatorValue] forKey:@"operator"];
    }
    if([self createTime])
    {
        [result setValue:[self createTime] forKey:@"createTime"];
    }
    if([self createUser])
    {
        [result setValue:[self createUser] forKey:@"createUser"];
    }
    if([self updateTime])
    {
        [result setValue:[self updateTime] forKey:@"updateTime"];
    }
    if([self updateUser])
    {
        [result setValue:[self updateUser] forKey:@"updateUser"];
    }
    if([self yn])
    {
        [result setValue:[self yn] forKey:@"yn"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.idValue = [dictionary objectForKey:@"id"];
    self.deptId = [dictionary objectForKey:@"deptId"];
    self.deptName = [dictionary objectForKey:@"deptName"];
    self.operatorValue = [dictionary objectForKey:@"operator"];
    self.createTime = [dictionary objectForKey:@"createTime"];
    self.createUser = [dictionary objectForKey:@"createUser"];
    self.updateTime = [dictionary objectForKey:@"updateTime"];
    self.updateUser = [dictionary objectForKey:@"updateUser"];
    self.yn = [dictionary objectForKey:@"yn"];
    return self;
}
 @end
@implementation ReturnItemResult
-(id) initWithId:(NSNumber*) idValue
      itemId:(NSNumber*)itemId
      itemName:(NSString*)itemName
      deptId:(NSNumber*)deptId
      deptName:(NSString*)deptName
      distributorType:(NSNumber*)distributorType
      distributorTypeName:(NSString*)distributorTypeName
      returnType:(NSNumber*)returnType
      conditionItem:(NSString*)conditionItem
      conditionItemName:(NSString*)conditionItemName
      circleType:(NSNumber*)circleType
      circleName:(NSString*)circleName
      remark:(NSString*)remark
      useFlag:(NSString*)useFlag
      createTime:(NSString*)createTime
      createUser:(NSString*)createUser
      updateTime:(NSString*)updateTime
      updateUser:(NSString*)updateUser
      yn:(NSNumber*)yn { 
     self.idValue = idValue;               
     self.itemId = itemId;               
     self.itemName = itemName;               
     self.deptId = deptId;               
     self.deptName = deptName;               
     self.distributorType = distributorType;               
     self.distributorTypeName = distributorTypeName;               
     self.returnType = returnType;               
     self.conditionItem = conditionItem;               
     self.conditionItemName = conditionItemName;               
     self.circleType = circleType;               
     self.circleName = circleName;               
     self.remark = remark;               
     self.useFlag = useFlag;               
     self.createTime = createTime;               
     self.createUser = createUser;               
     self.updateTime = updateTime;               
     self.updateUser = updateUser;               
     self.yn = yn;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self idValue])
    {
        [result setValue:[self idValue] forKey:@"id"];
    }
    if([self itemId])
    {
        [result setValue:[self itemId] forKey:@"itemId"];
    }
    if([self itemName])
    {
        [result setValue:[self itemName] forKey:@"itemName"];
    }
    if([self deptId])
    {
        [result setValue:[self deptId] forKey:@"deptId"];
    }
    if([self deptName])
    {
        [result setValue:[self deptName] forKey:@"deptName"];
    }
    if([self distributorType])
    {
        [result setValue:[self distributorType] forKey:@"distributorType"];
    }
    if([self distributorTypeName])
    {
        [result setValue:[self distributorTypeName] forKey:@"distributorTypeName"];
    }
    if([self returnType])
    {
        [result setValue:[self returnType] forKey:@"returnType"];
    }
    if([self conditionItem])
    {
        [result setValue:[self conditionItem] forKey:@"conditionItem"];
    }
    if([self conditionItemName])
    {
        [result setValue:[self conditionItemName] forKey:@"conditionItemName"];
    }
    if([self circleType])
    {
        [result setValue:[self circleType] forKey:@"circleType"];
    }
    if([self circleName])
    {
        [result setValue:[self circleName] forKey:@"circleName"];
    }
    if([self remark])
    {
        [result setValue:[self remark] forKey:@"remark"];
    }
    if([self useFlag])
    {
        [result setValue:[self useFlag] forKey:@"useFlag"];
    }
    if([self createTime])
    {
        [result setValue:[self createTime] forKey:@"createTime"];
    }
    if([self createUser])
    {
        [result setValue:[self createUser] forKey:@"createUser"];
    }
    if([self updateTime])
    {
        [result setValue:[self updateTime] forKey:@"updateTime"];
    }
    if([self updateUser])
    {
        [result setValue:[self updateUser] forKey:@"updateUser"];
    }
    if([self yn])
    {
        [result setValue:[self yn] forKey:@"yn"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.idValue = [dictionary objectForKey:@"id"];
    self.itemId = [dictionary objectForKey:@"itemId"];
    self.itemName = [dictionary objectForKey:@"itemName"];
    self.deptId = [dictionary objectForKey:@"deptId"];
    self.deptName = [dictionary objectForKey:@"deptName"];
    self.distributorType = [dictionary objectForKey:@"distributorType"];
    self.distributorTypeName = [dictionary objectForKey:@"distributorTypeName"];
    self.returnType = [dictionary objectForKey:@"returnType"];
    self.conditionItem = [dictionary objectForKey:@"conditionItem"];
    self.conditionItemName = [dictionary objectForKey:@"conditionItemName"];
    self.circleType = [dictionary objectForKey:@"circleType"];
    self.circleName = [dictionary objectForKey:@"circleName"];
    self.remark = [dictionary objectForKey:@"remark"];
    self.useFlag = [dictionary objectForKey:@"useFlag"];
    self.createTime = [dictionary objectForKey:@"createTime"];
    self.createUser = [dictionary objectForKey:@"createUser"];
    self.updateTime = [dictionary objectForKey:@"updateTime"];
    self.updateUser = [dictionary objectForKey:@"updateUser"];
    self.yn = [dictionary objectForKey:@"yn"];
    return self;
}
 @end
@implementation ReturnRuleResult
-(id) initWithId:(NSNumber*) idValue
      deptId:(NSNumber*)deptId
      deptName:(NSString*)deptName
      distributorType:(NSNumber*)distributorType
      distributorTypeName:(NSString*)distributorTypeName
      isReturn:(NSNumber*)isReturn
      circleType:(NSNumber*)circleType
      circleName:(NSString*)circleName
      createTime:(NSString*)createTime
      createUser:(NSString*)createUser
      updateTime:(NSString*)updateTime
      updateUser:(NSString*)updateUser
      yn:(NSNumber*)yn { 
     self.idValue = idValue;               
     self.deptId = deptId;               
     self.deptName = deptName;               
     self.distributorType = distributorType;               
     self.distributorTypeName = distributorTypeName;               
     self.isReturn = isReturn;               
     self.circleType = circleType;               
     self.circleName = circleName;               
     self.createTime = createTime;               
     self.createUser = createUser;               
     self.updateTime = updateTime;               
     self.updateUser = updateUser;               
     self.yn = yn;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self idValue])
    {
        [result setValue:[self idValue] forKey:@"id"];
    }
    if([self deptId])
    {
        [result setValue:[self deptId] forKey:@"deptId"];
    }
    if([self deptName])
    {
        [result setValue:[self deptName] forKey:@"deptName"];
    }
    if([self distributorType])
    {
        [result setValue:[self distributorType] forKey:@"distributorType"];
    }
    if([self distributorTypeName])
    {
        [result setValue:[self distributorTypeName] forKey:@"distributorTypeName"];
    }
    if([self isReturn])
    {
        [result setValue:[self isReturn] forKey:@"isReturn"];
    }
    if([self circleType])
    {
        [result setValue:[self circleType] forKey:@"circleType"];
    }
    if([self circleName])
    {
        [result setValue:[self circleName] forKey:@"circleName"];
    }
    if([self createTime])
    {
        [result setValue:[self createTime] forKey:@"createTime"];
    }
    if([self createUser])
    {
        [result setValue:[self createUser] forKey:@"createUser"];
    }
    if([self updateTime])
    {
        [result setValue:[self updateTime] forKey:@"updateTime"];
    }
    if([self updateUser])
    {
        [result setValue:[self updateUser] forKey:@"updateUser"];
    }
    if([self yn])
    {
        [result setValue:[self yn] forKey:@"yn"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.idValue = [dictionary objectForKey:@"id"];
    self.deptId = [dictionary objectForKey:@"deptId"];
    self.deptName = [dictionary objectForKey:@"deptName"];
    self.distributorType = [dictionary objectForKey:@"distributorType"];
    self.distributorTypeName = [dictionary objectForKey:@"distributorTypeName"];
    self.isReturn = [dictionary objectForKey:@"isReturn"];
    self.circleType = [dictionary objectForKey:@"circleType"];
    self.circleName = [dictionary objectForKey:@"circleName"];
    self.createTime = [dictionary objectForKey:@"createTime"];
    self.createUser = [dictionary objectForKey:@"createUser"];
    self.updateTime = [dictionary objectForKey:@"updateTime"];
    self.updateUser = [dictionary objectForKey:@"updateUser"];
    self.yn = [dictionary objectForKey:@"yn"];
    return self;
}
 @end
@implementation ReturnRuleDTO
-(id) initWithId:(NSNumber*) idValue
      deptId:(NSNumber*)deptId
      deptName:(NSString*)deptName
      distributorType:(NSNumber*)distributorType
      isReturn:(NSNumber*)isReturn
      circleType:(NSNumber*)circleType
      circleName:(NSString*)circleName
      createTime:(NSString*)createTime
      createUser:(NSString*)createUser
      updateTime:(NSString*)updateTime
      updateUser:(NSString*)updateUser
      yn:(NSNumber*)yn { 
     self.idValue = idValue;               
     self.deptId = deptId;               
     self.deptName = deptName;               
     self.distributorType = distributorType;               
     self.isReturn = isReturn;               
     self.circleType = circleType;               
     self.circleName = circleName;               
     self.createTime = createTime;               
     self.createUser = createUser;               
     self.updateTime = updateTime;               
     self.updateUser = updateUser;               
     self.yn = yn;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self idValue])
    {
        [result setValue:[self idValue] forKey:@"id"];
    }
    if([self deptId])
    {
        [result setValue:[self deptId] forKey:@"deptId"];
    }
    if([self deptName])
    {
        [result setValue:[self deptName] forKey:@"deptName"];
    }
    if([self distributorType])
    {
        [result setValue:[self distributorType] forKey:@"distributorType"];
    }
    if([self isReturn])
    {
        [result setValue:[self isReturn] forKey:@"isReturn"];
    }
    if([self circleType])
    {
        [result setValue:[self circleType] forKey:@"circleType"];
    }
    if([self circleName])
    {
        [result setValue:[self circleName] forKey:@"circleName"];
    }
    if([self createTime])
    {
        [result setValue:[self createTime] forKey:@"createTime"];
    }
    if([self createUser])
    {
        [result setValue:[self createUser] forKey:@"createUser"];
    }
    if([self updateTime])
    {
        [result setValue:[self updateTime] forKey:@"updateTime"];
    }
    if([self updateUser])
    {
        [result setValue:[self updateUser] forKey:@"updateUser"];
    }
    if([self yn])
    {
        [result setValue:[self yn] forKey:@"yn"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.idValue = [dictionary objectForKey:@"id"];
    self.deptId = [dictionary objectForKey:@"deptId"];
    self.deptName = [dictionary objectForKey:@"deptName"];
    self.distributorType = [dictionary objectForKey:@"distributorType"];
    self.isReturn = [dictionary objectForKey:@"isReturn"];
    self.circleType = [dictionary objectForKey:@"circleType"];
    self.circleName = [dictionary objectForKey:@"circleName"];
    self.createTime = [dictionary objectForKey:@"createTime"];
    self.createUser = [dictionary objectForKey:@"createUser"];
    self.updateTime = [dictionary objectForKey:@"updateTime"];
    self.updateUser = [dictionary objectForKey:@"updateUser"];
    self.yn = [dictionary objectForKey:@"yn"];
    return self;
}
 @end
@implementation DicDetail
-(id) initWithId:(NSNumber*) idValue
      codeType:(NSString*)codeType
      code:(NSString*)code
      name:(NSString*)name
      value:(NSString*)value
      useFlag:(NSNumber*)useFlag
      systemType:(NSString*)systemType
      refValue:(NSString*)refValue
      seq:(NSNumber*)seq
      remark:(NSString*)remark
      createTime:(NSString*)createTime
      createUser:(NSString*)createUser
      updateTime:(NSString*)updateTime
      updateUser:(NSString*)updateUser
      yn:(NSNumber*)yn { 
     self.idValue = idValue;               
     self.codeType = codeType;               
     self.code = code;               
     self.name = name;               
     self.value = value;               
     self.useFlag = useFlag;               
     self.systemType = systemType;               
     self.refValue = refValue;               
     self.seq = seq;               
     self.remark = remark;               
     self.createTime = createTime;               
     self.createUser = createUser;               
     self.updateTime = updateTime;               
     self.updateUser = updateUser;               
     self.yn = yn;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self idValue])
    {
        [result setValue:[self idValue] forKey:@"id"];
    }
    if([self codeType])
    {
        [result setValue:[self codeType] forKey:@"codeType"];
    }
    if([self code])
    {
        [result setValue:[self code] forKey:@"code"];
    }
    if([self name])
    {
        [result setValue:[self name] forKey:@"name"];
    }
    if([self value])
    {
        [result setValue:[self value] forKey:@"value"];
    }
    if([self useFlag])
    {
        [result setValue:[self useFlag] forKey:@"useFlag"];
    }
    if([self systemType])
    {
        [result setValue:[self systemType] forKey:@"systemType"];
    }
    if([self refValue])
    {
        [result setValue:[self refValue] forKey:@"refValue"];
    }
    if([self seq])
    {
        [result setValue:[self seq] forKey:@"seq"];
    }
    if([self remark])
    {
        [result setValue:[self remark] forKey:@"remark"];
    }
    if([self createTime])
    {
        [result setValue:[self createTime] forKey:@"createTime"];
    }
    if([self createUser])
    {
        [result setValue:[self createUser] forKey:@"createUser"];
    }
    if([self updateTime])
    {
        [result setValue:[self updateTime] forKey:@"updateTime"];
    }
    if([self updateUser])
    {
        [result setValue:[self updateUser] forKey:@"updateUser"];
    }
    if([self yn])
    {
        [result setValue:[self yn] forKey:@"yn"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.idValue = [dictionary objectForKey:@"id"];
    self.codeType = [dictionary objectForKey:@"codeType"];
    self.code = [dictionary objectForKey:@"code"];
    self.name = [dictionary objectForKey:@"name"];
    self.value = [dictionary objectForKey:@"value"];
    self.useFlag = [dictionary objectForKey:@"useFlag"];
    self.systemType = [dictionary objectForKey:@"systemType"];
    self.refValue = [dictionary objectForKey:@"refValue"];
    self.seq = [dictionary objectForKey:@"seq"];
    self.remark = [dictionary objectForKey:@"remark"];
    self.createTime = [dictionary objectForKey:@"createTime"];
    self.createUser = [dictionary objectForKey:@"createUser"];
    self.updateTime = [dictionary objectForKey:@"updateTime"];
    self.updateUser = [dictionary objectForKey:@"updateUser"];
    self.yn = [dictionary objectForKey:@"yn"];
    return self;
}
 @end
@implementation ReturnPolicyQuery
-(id) initWithId:(NSNumber*) idValue
      deptId:(NSNumber*)deptId
      distributorType:(NSNumber*)distributorType
      returnType:(NSNumber*)returnType
      itemId:(NSNumber*)itemId
      itemName:(NSString*)itemName
      circleType:(NSNumber*)circleType
      circleName:(NSString*)circleName
      circleFlag:(NSNumber*)circleFlag
      circleValue:(NSNumber*)circleValue
      condition:(NSString*)condition
      conditionRemark:(NSString*)conditionRemark
      returnRatio:(NSNumber*)returnRatio
      status:(NSNumber*)status
      createTime:(NSString*)createTime
      createUser:(NSString*)createUser
      updateTime:(NSString*)updateTime
      updateUser:(NSString*)updateUser
      yn:(NSNumber*)yn
      itemNameLike:(NSString*)itemNameLike
      pageIndex:(NSNumber*)pageIndex
      pageSize:(NSNumber*)pageSize
      offset:(NSNumber*)offset { 
     self.idValue = idValue;               
     self.deptId = deptId;               
     self.distributorType = distributorType;               
     self.returnType = returnType;               
     self.itemId = itemId;               
     self.itemName = itemName;               
     self.circleType = circleType;               
     self.circleName = circleName;               
     self.circleFlag = circleFlag;               
     self.circleValue = circleValue;               
     self.condition = condition;               
     self.conditionRemark = conditionRemark;               
     self.returnRatio = returnRatio;               
     self.status = status;               
     self.createTime = createTime;               
     self.createUser = createUser;               
     self.updateTime = updateTime;               
     self.updateUser = updateUser;               
     self.yn = yn;               
     self.itemNameLike = itemNameLike;               
     self.pageIndex = pageIndex;               
     self.pageSize = pageSize;               
     self.offset = offset;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self idValue])
    {
        [result setValue:[self idValue] forKey:@"id"];
    }
    if([self deptId])
    {
        [result setValue:[self deptId] forKey:@"deptId"];
    }
    if([self distributorType])
    {
        [result setValue:[self distributorType] forKey:@"distributorType"];
    }
    if([self returnType])
    {
        [result setValue:[self returnType] forKey:@"returnType"];
    }
    if([self itemId])
    {
        [result setValue:[self itemId] forKey:@"itemId"];
    }
    if([self itemName])
    {
        [result setValue:[self itemName] forKey:@"itemName"];
    }
    if([self circleType])
    {
        [result setValue:[self circleType] forKey:@"circleType"];
    }
    if([self circleName])
    {
        [result setValue:[self circleName] forKey:@"circleName"];
    }
    if([self circleFlag])
    {
        [result setValue:[self circleFlag] forKey:@"circleFlag"];
    }
    if([self circleValue])
    {
        [result setValue:[self circleValue] forKey:@"circleValue"];
    }
    if([self condition])
    {
        [result setValue:[self condition] forKey:@"condition"];
    }
    if([self conditionRemark])
    {
        [result setValue:[self conditionRemark] forKey:@"conditionRemark"];
    }
    if([self returnRatio])
    {
        [result setValue:[self returnRatio] forKey:@"returnRatio"];
    }
    if([self status])
    {
        [result setValue:[self status] forKey:@"status"];
    }
    if([self createTime])
    {
        [result setValue:[self createTime] forKey:@"createTime"];
    }
    if([self createUser])
    {
        [result setValue:[self createUser] forKey:@"createUser"];
    }
    if([self updateTime])
    {
        [result setValue:[self updateTime] forKey:@"updateTime"];
    }
    if([self updateUser])
    {
        [result setValue:[self updateUser] forKey:@"updateUser"];
    }
    if([self yn])
    {
        [result setValue:[self yn] forKey:@"yn"];
    }
    if([self itemNameLike])
    {
        [result setValue:[self itemNameLike] forKey:@"itemNameLike"];
    }
    if([self pageIndex])
    {
        [result setValue:[self pageIndex] forKey:@"pageIndex"];
    }
    if([self pageSize])
    {
        [result setValue:[self pageSize] forKey:@"pageSize"];
    }
    if([self offset])
    {
        [result setValue:[self offset] forKey:@"offset"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.idValue = [dictionary objectForKey:@"id"];
    self.deptId = [dictionary objectForKey:@"deptId"];
    self.distributorType = [dictionary objectForKey:@"distributorType"];
    self.returnType = [dictionary objectForKey:@"returnType"];
    self.itemId = [dictionary objectForKey:@"itemId"];
    self.itemName = [dictionary objectForKey:@"itemName"];
    self.circleType = [dictionary objectForKey:@"circleType"];
    self.circleName = [dictionary objectForKey:@"circleName"];
    self.circleFlag = [dictionary objectForKey:@"circleFlag"];
    self.circleValue = [dictionary objectForKey:@"circleValue"];
    self.condition = [dictionary objectForKey:@"condition"];
    self.conditionRemark = [dictionary objectForKey:@"conditionRemark"];
    self.returnRatio = [dictionary objectForKey:@"returnRatio"];
    self.status = [dictionary objectForKey:@"status"];
    self.createTime = [dictionary objectForKey:@"createTime"];
    self.createUser = [dictionary objectForKey:@"createUser"];
    self.updateTime = [dictionary objectForKey:@"updateTime"];
    self.updateUser = [dictionary objectForKey:@"updateUser"];
    self.yn = [dictionary objectForKey:@"yn"];
    self.itemNameLike = [dictionary objectForKey:@"itemNameLike"];
    self.pageIndex = [dictionary objectForKey:@"pageIndex"];
    self.pageSize = [dictionary objectForKey:@"pageSize"];
    self.offset = [dictionary objectForKey:@"offset"];
    return self;
}
 @end
@implementation DistributorQuery
-(id) initWithDistributorId:(NSString*) distributorId
      distributorName:(NSString*)distributorName
      pin:(NSString*)pin
      contractNo:(NSString*)contractNo
      businessLicense:(NSString*)businessLicense
      legalRepresentative:(NSString*)legalRepresentative
      businessLicensePic:(NSString*)businessLicensePic
      businessDesc:(NSString*)businessDesc
      workAddress:(NSString*)workAddress
      contracter:(NSString*)contracter
      tel:(NSString*)tel
      email:(NSString*)email
      region:(NSString*)region
      settleTime:(NSString*)settleTime
      status:(NSNumber*)status
      reason:(NSString*)reason
      distributorLevel:(NSNumber*)distributorLevel
      distributorType:(NSNumber*)distributorType
      parentPin:(NSString*)parentPin
      parentDistributorId:(NSString*)parentDistributorId
      parentDistributorName:(NSString*)parentDistributorName
      dept:(NSNumber*)dept
      erp:(NSString*)erp
      settleTimeBegin:(NSString*)settleTimeBegin
      settleTimeEnd:(NSString*)settleTimeEnd
      pageIndex:(NSNumber*)pageIndex
      pageSize:(NSNumber*)pageSize
      offset:(NSNumber*)offset { 
     self.distributorId = distributorId;               
     self.distributorName = distributorName;               
     self.pin = pin;               
     self.contractNo = contractNo;               
     self.businessLicense = businessLicense;               
     self.legalRepresentative = legalRepresentative;               
     self.businessLicensePic = businessLicensePic;               
     self.businessDesc = businessDesc;               
     self.workAddress = workAddress;               
     self.contracter = contracter;               
     self.tel = tel;               
     self.email = email;               
     self.region = region;               
     self.settleTime = settleTime;               
     self.status = status;               
     self.reason = reason;               
     self.distributorLevel = distributorLevel;               
     self.distributorType = distributorType;               
     self.parentPin = parentPin;               
     self.parentDistributorId = parentDistributorId;               
     self.parentDistributorName = parentDistributorName;               
     self.dept = dept;               
     self.erp = erp;               
     self.settleTimeBegin = settleTimeBegin;               
     self.settleTimeEnd = settleTimeEnd;               
     self.pageIndex = pageIndex;               
     self.pageSize = pageSize;               
     self.offset = offset;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self distributorId])
    {
        [result setValue:[self distributorId] forKey:@"distributorId"];
    }
    if([self distributorName])
    {
        [result setValue:[self distributorName] forKey:@"distributorName"];
    }
    if([self pin])
    {
        [result setValue:[self pin] forKey:@"pin"];
    }
    if([self contractNo])
    {
        [result setValue:[self contractNo] forKey:@"contractNo"];
    }
    if([self businessLicense])
    {
        [result setValue:[self businessLicense] forKey:@"businessLicense"];
    }
    if([self legalRepresentative])
    {
        [result setValue:[self legalRepresentative] forKey:@"legalRepresentative"];
    }
    if([self businessLicensePic])
    {
        [result setValue:[self businessLicensePic] forKey:@"businessLicensePic"];
    }
    if([self businessDesc])
    {
        [result setValue:[self businessDesc] forKey:@"businessDesc"];
    }
    if([self workAddress])
    {
        [result setValue:[self workAddress] forKey:@"workAddress"];
    }
    if([self contracter])
    {
        [result setValue:[self contracter] forKey:@"contracter"];
    }
    if([self tel])
    {
        [result setValue:[self tel] forKey:@"tel"];
    }
    if([self email])
    {
        [result setValue:[self email] forKey:@"email"];
    }
    if([self region])
    {
        [result setValue:[self region] forKey:@"region"];
    }
    if([self settleTime])
    {
        [result setValue:[self settleTime] forKey:@"settleTime"];
    }
    if([self status])
    {
        [result setValue:[self status] forKey:@"status"];
    }
    if([self reason])
    {
        [result setValue:[self reason] forKey:@"reason"];
    }
    if([self distributorLevel])
    {
        [result setValue:[self distributorLevel] forKey:@"distributorLevel"];
    }
    if([self distributorType])
    {
        [result setValue:[self distributorType] forKey:@"distributorType"];
    }
    if([self parentPin])
    {
        [result setValue:[self parentPin] forKey:@"parentPin"];
    }
    if([self parentDistributorId])
    {
        [result setValue:[self parentDistributorId] forKey:@"parentDistributorId"];
    }
    if([self parentDistributorName])
    {
        [result setValue:[self parentDistributorName] forKey:@"parentDistributorName"];
    }
    if([self dept])
    {
        [result setValue:[self dept] forKey:@"dept"];
    }
    if([self erp])
    {
        [result setValue:[self erp] forKey:@"erp"];
    }
    if([self settleTimeBegin])
    {
        [result setValue:[self settleTimeBegin] forKey:@"settleTimeBegin"];
    }
    if([self settleTimeEnd])
    {
        [result setValue:[self settleTimeEnd] forKey:@"settleTimeEnd"];
    }
    if([self pageIndex])
    {
        [result setValue:[self pageIndex] forKey:@"pageIndex"];
    }
    if([self pageSize])
    {
        [result setValue:[self pageSize] forKey:@"pageSize"];
    }
    if([self offset])
    {
        [result setValue:[self offset] forKey:@"offset"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.distributorId = [dictionary objectForKey:@"distributorId"];
    self.distributorName = [dictionary objectForKey:@"distributorName"];
    self.pin = [dictionary objectForKey:@"pin"];
    self.contractNo = [dictionary objectForKey:@"contractNo"];
    self.businessLicense = [dictionary objectForKey:@"businessLicense"];
    self.legalRepresentative = [dictionary objectForKey:@"legalRepresentative"];
    self.businessLicensePic = [dictionary objectForKey:@"businessLicensePic"];
    self.businessDesc = [dictionary objectForKey:@"businessDesc"];
    self.workAddress = [dictionary objectForKey:@"workAddress"];
    self.contracter = [dictionary objectForKey:@"contracter"];
    self.tel = [dictionary objectForKey:@"tel"];
    self.email = [dictionary objectForKey:@"email"];
    self.region = [dictionary objectForKey:@"region"];
    self.settleTime = [dictionary objectForKey:@"settleTime"];
    self.status = [dictionary objectForKey:@"status"];
    self.reason = [dictionary objectForKey:@"reason"];
    self.distributorLevel = [dictionary objectForKey:@"distributorLevel"];
    self.distributorType = [dictionary objectForKey:@"distributorType"];
    self.parentPin = [dictionary objectForKey:@"parentPin"];
    self.parentDistributorId = [dictionary objectForKey:@"parentDistributorId"];
    self.parentDistributorName = [dictionary objectForKey:@"parentDistributorName"];
    self.dept = [dictionary objectForKey:@"dept"];
    self.erp = [dictionary objectForKey:@"erp"];
    self.settleTimeBegin = [dictionary objectForKey:@"settleTimeBegin"];
    self.settleTimeEnd = [dictionary objectForKey:@"settleTimeEnd"];
    self.pageIndex = [dictionary objectForKey:@"pageIndex"];
    self.pageSize = [dictionary objectForKey:@"pageSize"];
    self.offset = [dictionary objectForKey:@"offset"];
    return self;
}
 @end
@implementation ReturnBillQuery
-(id) initWithId:(NSNumber*) idValue
      retrunBillId:(NSString*)retrunBillId
      distributorId:(NSString*)distributorId
      pin:(NSString*)pin
      deptId:(NSNumber*)deptId
      distributorType:(NSNumber*)distributorType
      distributorName:(NSString*)distributorName
      month:(NSString*)month
      generateTime:(NSString*)generateTime
      billBegin:(NSString*)billBegin
      billEnd:(NSString*)billEnd
      circleType:(NSNumber*)circleType
      returnType:(NSNumber*)returnType
      returnMount:(NSNumber*)returnMount
      status:(NSNumber*)status
      createTime:(NSString*)createTime
      createUser:(NSString*)createUser
      updateTime:(NSString*)updateTime
      updateUser:(NSString*)updateUser
      yn:(NSNumber*)yn
      reason:(NSString*)reason
      beginTime:(NSString*)beginTime
      endTime:(NSString*)endTime
      pageIndex:(NSNumber*)pageIndex
      pageSize:(NSNumber*)pageSize
      offset:(NSNumber*)offset { 
     self.idValue = idValue;               
     self.retrunBillId = retrunBillId;               
     self.distributorId = distributorId;               
     self.pin = pin;               
     self.deptId = deptId;               
     self.distributorType = distributorType;               
     self.distributorName = distributorName;               
     self.month = month;               
     self.generateTime = generateTime;               
     self.billBegin = billBegin;               
     self.billEnd = billEnd;               
     self.circleType = circleType;               
     self.returnType = returnType;               
     self.returnMount = returnMount;               
     self.status = status;               
     self.createTime = createTime;               
     self.createUser = createUser;               
     self.updateTime = updateTime;               
     self.updateUser = updateUser;               
     self.yn = yn;               
     self.reason = reason;               
     self.beginTime = beginTime;               
     self.endTime = endTime;               
     self.pageIndex = pageIndex;               
     self.pageSize = pageSize;               
     self.offset = offset;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self idValue])
    {
        [result setValue:[self idValue] forKey:@"id"];
    }
    if([self retrunBillId])
    {
        [result setValue:[self retrunBillId] forKey:@"retrunBillId"];
    }
    if([self distributorId])
    {
        [result setValue:[self distributorId] forKey:@"distributorId"];
    }
    if([self pin])
    {
        [result setValue:[self pin] forKey:@"pin"];
    }
    if([self deptId])
    {
        [result setValue:[self deptId] forKey:@"deptId"];
    }
    if([self distributorType])
    {
        [result setValue:[self distributorType] forKey:@"distributorType"];
    }
    if([self distributorName])
    {
        [result setValue:[self distributorName] forKey:@"distributorName"];
    }
    if([self month])
    {
        [result setValue:[self month] forKey:@"month"];
    }
    if([self generateTime])
    {
        [result setValue:[self generateTime] forKey:@"generateTime"];
    }
    if([self billBegin])
    {
        [result setValue:[self billBegin] forKey:@"billBegin"];
    }
    if([self billEnd])
    {
        [result setValue:[self billEnd] forKey:@"billEnd"];
    }
    if([self circleType])
    {
        [result setValue:[self circleType] forKey:@"circleType"];
    }
    if([self returnType])
    {
        [result setValue:[self returnType] forKey:@"returnType"];
    }
    if([self returnMount])
    {
        [result setValue:[self returnMount] forKey:@"returnMount"];
    }
    if([self status])
    {
        [result setValue:[self status] forKey:@"status"];
    }
    if([self createTime])
    {
        [result setValue:[self createTime] forKey:@"createTime"];
    }
    if([self createUser])
    {
        [result setValue:[self createUser] forKey:@"createUser"];
    }
    if([self updateTime])
    {
        [result setValue:[self updateTime] forKey:@"updateTime"];
    }
    if([self updateUser])
    {
        [result setValue:[self updateUser] forKey:@"updateUser"];
    }
    if([self yn])
    {
        [result setValue:[self yn] forKey:@"yn"];
    }
    if([self reason])
    {
        [result setValue:[self reason] forKey:@"reason"];
    }
    if([self beginTime])
    {
        [result setValue:[self beginTime] forKey:@"beginTime"];
    }
    if([self endTime])
    {
        [result setValue:[self endTime] forKey:@"endTime"];
    }
    if([self pageIndex])
    {
        [result setValue:[self pageIndex] forKey:@"pageIndex"];
    }
    if([self pageSize])
    {
        [result setValue:[self pageSize] forKey:@"pageSize"];
    }
    if([self offset])
    {
        [result setValue:[self offset] forKey:@"offset"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.idValue = [dictionary objectForKey:@"id"];
    self.retrunBillId = [dictionary objectForKey:@"retrunBillId"];
    self.distributorId = [dictionary objectForKey:@"distributorId"];
    self.pin = [dictionary objectForKey:@"pin"];
    self.deptId = [dictionary objectForKey:@"deptId"];
    self.distributorType = [dictionary objectForKey:@"distributorType"];
    self.distributorName = [dictionary objectForKey:@"distributorName"];
    self.month = [dictionary objectForKey:@"month"];
    self.generateTime = [dictionary objectForKey:@"generateTime"];
    self.billBegin = [dictionary objectForKey:@"billBegin"];
    self.billEnd = [dictionary objectForKey:@"billEnd"];
    self.circleType = [dictionary objectForKey:@"circleType"];
    self.returnType = [dictionary objectForKey:@"returnType"];
    self.returnMount = [dictionary objectForKey:@"returnMount"];
    self.status = [dictionary objectForKey:@"status"];
    self.createTime = [dictionary objectForKey:@"createTime"];
    self.createUser = [dictionary objectForKey:@"createUser"];
    self.updateTime = [dictionary objectForKey:@"updateTime"];
    self.updateUser = [dictionary objectForKey:@"updateUser"];
    self.yn = [dictionary objectForKey:@"yn"];
    self.reason = [dictionary objectForKey:@"reason"];
    self.beginTime = [dictionary objectForKey:@"beginTime"];
    self.endTime = [dictionary objectForKey:@"endTime"];
    self.pageIndex = [dictionary objectForKey:@"pageIndex"];
    self.pageSize = [dictionary objectForKey:@"pageSize"];
    self.offset = [dictionary objectForKey:@"offset"];
    return self;
}
 @end
@implementation OperatorPrePayAchievement
-(id) initWithPin:(NSString*) pin
      name:(NSString*)name
      realName:(NSString*)realName
      dept:(NSNumber*)dept
      deptName:(NSString*)deptName
      distributorType:(NSString*)distributorType
      distributorTypeName:(NSString*)distributorTypeName
      oneLevelDistributorName:(NSString*)oneLevelDistributorName
      secondLevelDistributorName:(NSString*)secondLevelDistributorName
      superDistributorName:(NSString*)superDistributorName
      superDistributorPin:(NSString*)superDistributorPin
      serviceCode:(NSString*)serviceCode
      serviceCodeName:(NSString*)serviceCodeName
      opType:(NSNumber*)opType
      opTypeName:(NSString*)opTypeName
      billTime:(NSString*)billTime
      consumeDate:(NSString*)consumeDate
      transactionNo:(NSString*)transactionNo
      consumeCount:(NSNumber*)consumeCount
      cashPayFeeCount:(NSNumber*)cashPayFeeCount
      achievmentCount:(NSNumber*)achievmentCount
      payCouponFeeCount:(NSNumber*)payCouponFeeCount
      freeCouponFeeCount:(NSNumber*)freeCouponFeeCount { 
     self.pin = pin;               
     self.name = name;               
     self.realName = realName;               
     self.dept = dept;               
     self.deptName = deptName;               
     self.distributorType = distributorType;               
     self.distributorTypeName = distributorTypeName;               
     self.oneLevelDistributorName = oneLevelDistributorName;               
     self.secondLevelDistributorName = secondLevelDistributorName;               
     self.superDistributorName = superDistributorName;               
     self.superDistributorPin = superDistributorPin;               
     self.serviceCode = serviceCode;               
     self.serviceCodeName = serviceCodeName;               
     self.opType = opType;               
     self.opTypeName = opTypeName;               
     self.billTime = billTime;               
     self.consumeDate = consumeDate;               
     self.transactionNo = transactionNo;               
     self.consumeCount = consumeCount;               
     self.cashPayFeeCount = cashPayFeeCount;               
     self.achievmentCount = achievmentCount;               
     self.payCouponFeeCount = payCouponFeeCount;               
     self.freeCouponFeeCount = freeCouponFeeCount;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self pin])
    {
        [result setValue:[self pin] forKey:@"pin"];
    }
    if([self name])
    {
        [result setValue:[self name] forKey:@"name"];
    }
    if([self realName])
    {
        [result setValue:[self realName] forKey:@"realName"];
    }
    if([self dept])
    {
        [result setValue:[self dept] forKey:@"dept"];
    }
    if([self deptName])
    {
        [result setValue:[self deptName] forKey:@"deptName"];
    }
    if([self distributorType])
    {
        [result setValue:[self distributorType] forKey:@"distributorType"];
    }
    if([self distributorTypeName])
    {
        [result setValue:[self distributorTypeName] forKey:@"distributorTypeName"];
    }
    if([self oneLevelDistributorName])
    {
        [result setValue:[self oneLevelDistributorName] forKey:@"oneLevelDistributorName"];
    }
    if([self secondLevelDistributorName])
    {
        [result setValue:[self secondLevelDistributorName] forKey:@"secondLevelDistributorName"];
    }
    if([self superDistributorName])
    {
        [result setValue:[self superDistributorName] forKey:@"superDistributorName"];
    }
    if([self superDistributorPin])
    {
        [result setValue:[self superDistributorPin] forKey:@"superDistributorPin"];
    }
    if([self serviceCode])
    {
        [result setValue:[self serviceCode] forKey:@"serviceCode"];
    }
    if([self serviceCodeName])
    {
        [result setValue:[self serviceCodeName] forKey:@"serviceCodeName"];
    }
    if([self opType])
    {
        [result setValue:[self opType] forKey:@"opType"];
    }
    if([self opTypeName])
    {
        [result setValue:[self opTypeName] forKey:@"opTypeName"];
    }
    if([self billTime])
    {
        [result setValue:[self billTime] forKey:@"billTime"];
    }
    if([self consumeDate])
    {
        [result setValue:[self consumeDate] forKey:@"consumeDate"];
    }
    if([self transactionNo])
    {
        [result setValue:[self transactionNo] forKey:@"transactionNo"];
    }
    if([self consumeCount])
    {
        [result setValue:[self consumeCount] forKey:@"consumeCount"];
    }
    if([self cashPayFeeCount])
    {
        [result setValue:[self cashPayFeeCount] forKey:@"cashPayFeeCount"];
    }
    if([self achievmentCount])
    {
        [result setValue:[self achievmentCount] forKey:@"achievmentCount"];
    }
    if([self payCouponFeeCount])
    {
        [result setValue:[self payCouponFeeCount] forKey:@"payCouponFeeCount"];
    }
    if([self freeCouponFeeCount])
    {
        [result setValue:[self freeCouponFeeCount] forKey:@"freeCouponFeeCount"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.pin = [dictionary objectForKey:@"pin"];
    self.name = [dictionary objectForKey:@"name"];
    self.realName = [dictionary objectForKey:@"realName"];
    self.dept = [dictionary objectForKey:@"dept"];
    self.deptName = [dictionary objectForKey:@"deptName"];
    self.distributorType = [dictionary objectForKey:@"distributorType"];
    self.distributorTypeName = [dictionary objectForKey:@"distributorTypeName"];
    self.oneLevelDistributorName = [dictionary objectForKey:@"oneLevelDistributorName"];
    self.secondLevelDistributorName = [dictionary objectForKey:@"secondLevelDistributorName"];
    self.superDistributorName = [dictionary objectForKey:@"superDistributorName"];
    self.superDistributorPin = [dictionary objectForKey:@"superDistributorPin"];
    self.serviceCode = [dictionary objectForKey:@"serviceCode"];
    self.serviceCodeName = [dictionary objectForKey:@"serviceCodeName"];
    self.opType = [dictionary objectForKey:@"opType"];
    self.opTypeName = [dictionary objectForKey:@"opTypeName"];
    self.billTime = [dictionary objectForKey:@"billTime"];
    self.consumeDate = [dictionary objectForKey:@"consumeDate"];
    self.transactionNo = [dictionary objectForKey:@"transactionNo"];
    self.consumeCount = [dictionary objectForKey:@"consumeCount"];
    self.cashPayFeeCount = [dictionary objectForKey:@"cashPayFeeCount"];
    self.achievmentCount = [dictionary objectForKey:@"achievmentCount"];
    self.payCouponFeeCount = [dictionary objectForKey:@"payCouponFeeCount"];
    self.freeCouponFeeCount = [dictionary objectForKey:@"freeCouponFeeCount"];
    return self;
}
 @end
@implementation Customer
-(id) initWithId:(NSNumber*) idValue
      pin:(NSString*)pin
      distributorId:(NSString*)distributorId
      distributorPin:(NSString*)distributorPin
      distributorName:(NSString*)distributorName
      distributorLevel:(NSString*)distributorLevel
      relTime:(NSString*)relTime
      source:(NSNumber*)source
      aliasName:(NSString*)aliasName
      contracter:(NSString*)contracter
      tel:(NSString*)tel
      email:(NSString*)email
      remark:(NSString*)remark
      createTime:(NSString*)createTime
      createUser:(NSString*)createUser
      updateTime:(NSString*)updateTime
      updateUser:(NSString*)updateUser
      accountTypeName:(NSString*)accountTypeName
      realName:(NSString*)realName
      name:(NSString*)name
      yn:(NSNumber*)yn { 
     self.idValue = idValue;               
     self.pin = pin;               
     self.distributorId = distributorId;               
     self.distributorPin = distributorPin;               
     self.distributorName = distributorName;               
     self.distributorLevel = distributorLevel;               
     self.relTime = relTime;               
     self.source = source;               
     self.aliasName = aliasName;               
     self.contracter = contracter;               
     self.tel = tel;               
     self.email = email;               
     self.remark = remark;               
     self.createTime = createTime;               
     self.createUser = createUser;               
     self.updateTime = updateTime;               
     self.updateUser = updateUser;               
     self.accountTypeName = accountTypeName;               
     self.realName = realName;               
     self.name = name;               
     self.yn = yn;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self idValue])
    {
        [result setValue:[self idValue] forKey:@"id"];
    }
    if([self pin])
    {
        [result setValue:[self pin] forKey:@"pin"];
    }
    if([self distributorId])
    {
        [result setValue:[self distributorId] forKey:@"distributorId"];
    }
    if([self distributorPin])
    {
        [result setValue:[self distributorPin] forKey:@"distributorPin"];
    }
    if([self distributorName])
    {
        [result setValue:[self distributorName] forKey:@"distributorName"];
    }
    if([self distributorLevel])
    {
        [result setValue:[self distributorLevel] forKey:@"distributorLevel"];
    }
    if([self relTime])
    {
        [result setValue:[self relTime] forKey:@"relTime"];
    }
    if([self source])
    {
        [result setValue:[self source] forKey:@"source"];
    }
    if([self aliasName])
    {
        [result setValue:[self aliasName] forKey:@"aliasName"];
    }
    if([self contracter])
    {
        [result setValue:[self contracter] forKey:@"contracter"];
    }
    if([self tel])
    {
        [result setValue:[self tel] forKey:@"tel"];
    }
    if([self email])
    {
        [result setValue:[self email] forKey:@"email"];
    }
    if([self remark])
    {
        [result setValue:[self remark] forKey:@"remark"];
    }
    if([self createTime])
    {
        [result setValue:[self createTime] forKey:@"createTime"];
    }
    if([self createUser])
    {
        [result setValue:[self createUser] forKey:@"createUser"];
    }
    if([self updateTime])
    {
        [result setValue:[self updateTime] forKey:@"updateTime"];
    }
    if([self updateUser])
    {
        [result setValue:[self updateUser] forKey:@"updateUser"];
    }
    if([self accountTypeName])
    {
        [result setValue:[self accountTypeName] forKey:@"accountTypeName"];
    }
    if([self realName])
    {
        [result setValue:[self realName] forKey:@"realName"];
    }
    if([self name])
    {
        [result setValue:[self name] forKey:@"name"];
    }
    if([self yn])
    {
        [result setValue:[self yn] forKey:@"yn"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.idValue = [dictionary objectForKey:@"id"];
    self.pin = [dictionary objectForKey:@"pin"];
    self.distributorId = [dictionary objectForKey:@"distributorId"];
    self.distributorPin = [dictionary objectForKey:@"distributorPin"];
    self.distributorName = [dictionary objectForKey:@"distributorName"];
    self.distributorLevel = [dictionary objectForKey:@"distributorLevel"];
    self.relTime = [dictionary objectForKey:@"relTime"];
    self.source = [dictionary objectForKey:@"source"];
    self.aliasName = [dictionary objectForKey:@"aliasName"];
    self.contracter = [dictionary objectForKey:@"contracter"];
    self.tel = [dictionary objectForKey:@"tel"];
    self.email = [dictionary objectForKey:@"email"];
    self.remark = [dictionary objectForKey:@"remark"];
    self.createTime = [dictionary objectForKey:@"createTime"];
    self.createUser = [dictionary objectForKey:@"createUser"];
    self.updateTime = [dictionary objectForKey:@"updateTime"];
    self.updateUser = [dictionary objectForKey:@"updateUser"];
    self.accountTypeName = [dictionary objectForKey:@"accountTypeName"];
    self.realName = [dictionary objectForKey:@"realName"];
    self.name = [dictionary objectForKey:@"name"];
    self.yn = [dictionary objectForKey:@"yn"];
    return self;
}
 @end
@implementation Pagination
-(id) initWithCurrPageNo:(NSNumber*) currPageNo
      numberPages:(NSNumber*)numberPages
      numberRecords:(NSNumber*)numberRecords
      pageSize:(NSNumber*)pageSize
      startIndex:(NSNumber*)startIndex { 
     self.currPageNo = currPageNo;               
     self.numberPages = numberPages;               
     self.numberRecords = numberRecords;               
     self.pageSize = pageSize;               
     self.startIndex = startIndex;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self currPageNo])
    {
        [result setValue:[self currPageNo] forKey:@"currPageNo"];
    }
    if([self numberPages])
    {
        [result setValue:[self numberPages] forKey:@"numberPages"];
    }
    if([self numberRecords])
    {
        [result setValue:[self numberRecords] forKey:@"numberRecords"];
    }
    if([self pageSize])
    {
        [result setValue:[self pageSize] forKey:@"pageSize"];
    }
    if([self startIndex])
    {
        [result setValue:[self startIndex] forKey:@"startIndex"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.currPageNo = [dictionary objectForKey:@"currPageNo"];
    self.numberPages = [dictionary objectForKey:@"numberPages"];
    self.numberRecords = [dictionary objectForKey:@"numberRecords"];
    self.pageSize = [dictionary objectForKey:@"pageSize"];
    self.startIndex = [dictionary objectForKey:@"startIndex"];
    return self;
}
 @end
@implementation OrderItemDetail
-(id) initWithPriceSnapshot:(NSString*) priceSnapshot
      extraInfoBefore:(NSArray<ExtraInfo*>*)extraInfoBefore
      extraInfoAfter:(NSArray<ExtraInfo*>*)extraInfoAfter
      extraInfo:(NSArray<ExtraInfo*>*)extraInfo
      actualFee:(NSNumber*)actualFee
      quantity:(NSNumber*)quantity
      expireDateBefore:(NSString*)expireDateBefore
      expireDateAfter:(NSString*)expireDateAfter
      unit:(NSString*)unit
      chargeDuration:(NSNumber*)chargeDuration
      chargeMode:(NSString*)chargeMode
      totalFee:(NSNumber*)totalFee
      serviceName:(NSString*)serviceName
      siteType:(NSString*)siteType
      createTime:(NSString*)createTime
      status:(NSNumber*)status
      itemId:(NSString*)itemId
      itemName:(NSString*)itemName
      formula:(NSString*)formula
      orderNumber:(NSString*)orderNumber
      allActualFee:(NSNumber*)allActualFee
      remark:(NSString*)remark
      moneyPay:(NSNumber*)moneyPay
      balancePay:(NSNumber*)balancePay
      refundFee:(NSNumber*)refundFee
      chargeModeInfo:(NSNumber*)chargeModeInfo
      deleteStatus:(NSNumber*)deleteStatus
      favorableFee:(NSNumber*)favorableFee
      resizeFormulaType:(NSNumber*)resizeFormulaType { 
     self.priceSnapshot = priceSnapshot;               
     self.extraInfoBefore = extraInfoBefore;               
     self.extraInfoAfter = extraInfoAfter;               
     self.extraInfo = extraInfo;               
     self.actualFee = actualFee;               
     self.quantity = quantity;               
     self.expireDateBefore = expireDateBefore;               
     self.expireDateAfter = expireDateAfter;               
     self.unit = unit;               
     self.chargeDuration = chargeDuration;               
     self.chargeMode = chargeMode;               
     self.totalFee = totalFee;               
     self.serviceName = serviceName;               
     self.siteType = siteType;               
     self.createTime = createTime;               
     self.status = status;               
     self.itemId = itemId;               
     self.itemName = itemName;               
     self.formula = formula;               
     self.orderNumber = orderNumber;               
     self.allActualFee = allActualFee;               
     self.remark = remark;               
     self.moneyPay = moneyPay;               
     self.balancePay = balancePay;               
     self.refundFee = refundFee;               
     self.chargeModeInfo = chargeModeInfo;               
     self.deleteStatus = deleteStatus;               
     self.favorableFee = favorableFee;               
     self.resizeFormulaType = resizeFormulaType;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self priceSnapshot])
    {
        [result setValue:[self priceSnapshot] forKey:@"priceSnapshot"];
    }
    if([self extraInfoBefore])
    {
        NSMutableArray<NSDictionary*>* arrayDic  = [[NSMutableArray alloc] init];
        for (int i =0 ; i< [[self extraInfoBefore] count]; i++) {
            ExtraInfo* item = [[self extraInfoBefore] objectAtIndex:i];
            [arrayDic addObject:[item dictionary]];
        }
        [result setValue:arrayDic forKey:@"extraInfoBefore"];
    }
    if([self extraInfoAfter])
    {
        NSMutableArray<NSDictionary*>* arrayDic  = [[NSMutableArray alloc] init];
        for (int i =0 ; i< [[self extraInfoAfter] count]; i++) {
            ExtraInfo* item = [[self extraInfoAfter] objectAtIndex:i];
            [arrayDic addObject:[item dictionary]];
        }
        [result setValue:arrayDic forKey:@"extraInfoAfter"];
    }
    if([self extraInfo])
    {
        NSMutableArray<NSDictionary*>* arrayDic  = [[NSMutableArray alloc] init];
        for (int i =0 ; i< [[self extraInfo] count]; i++) {
            ExtraInfo* item = [[self extraInfo] objectAtIndex:i];
            [arrayDic addObject:[item dictionary]];
        }
        [result setValue:arrayDic forKey:@"extraInfo"];
    }
    if([self actualFee])
    {
        [result setValue:[self actualFee] forKey:@"actualFee"];
    }
    if([self quantity])
    {
        [result setValue:[self quantity] forKey:@"quantity"];
    }
    if([self expireDateBefore])
    {
        [result setValue:[self expireDateBefore] forKey:@"expireDateBefore"];
    }
    if([self expireDateAfter])
    {
        [result setValue:[self expireDateAfter] forKey:@"expireDateAfter"];
    }
    if([self unit])
    {
        [result setValue:[self unit] forKey:@"unit"];
    }
    if([self chargeDuration])
    {
        [result setValue:[self chargeDuration] forKey:@"chargeDuration"];
    }
    if([self chargeMode])
    {
        [result setValue:[self chargeMode] forKey:@"chargeMode"];
    }
    if([self totalFee])
    {
        [result setValue:[self totalFee] forKey:@"totalFee"];
    }
    if([self serviceName])
    {
        [result setValue:[self serviceName] forKey:@"serviceName"];
    }
    if([self siteType])
    {
        [result setValue:[self siteType] forKey:@"siteType"];
    }
    if([self createTime])
    {
        [result setValue:[self createTime] forKey:@"createTime"];
    }
    if([self status])
    {
        [result setValue:[self status] forKey:@"status"];
    }
    if([self itemId])
    {
        [result setValue:[self itemId] forKey:@"itemId"];
    }
    if([self itemName])
    {
        [result setValue:[self itemName] forKey:@"itemName"];
    }
    if([self formula])
    {
        [result setValue:[self formula] forKey:@"formula"];
    }
    if([self orderNumber])
    {
        [result setValue:[self orderNumber] forKey:@"orderNumber"];
    }
    if([self allActualFee])
    {
        [result setValue:[self allActualFee] forKey:@"allActualFee"];
    }
    if([self remark])
    {
        [result setValue:[self remark] forKey:@"remark"];
    }
    if([self moneyPay])
    {
        [result setValue:[self moneyPay] forKey:@"moneyPay"];
    }
    if([self balancePay])
    {
        [result setValue:[self balancePay] forKey:@"balancePay"];
    }
    if([self refundFee])
    {
        [result setValue:[self refundFee] forKey:@"refundFee"];
    }
    if([self chargeModeInfo])
    {
        [result setValue:[self chargeModeInfo] forKey:@"chargeModeInfo"];
    }
    if([self deleteStatus])
    {
        [result setValue:[self deleteStatus] forKey:@"deleteStatus"];
    }
    if([self favorableFee])
    {
        [result setValue:[self favorableFee] forKey:@"favorableFee"];
    }
    if([self resizeFormulaType])
    {
        [result setValue:[self resizeFormulaType] forKey:@"resizeFormulaType"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.priceSnapshot = [dictionary objectForKey:@"priceSnapshot"];
    NSArray* extraInfoBeforeArray = [dictionary objectForKey:@"extraInfoBefore"];
    if(extraInfoBeforeArray&&![extraInfoBeforeArray isKindOfClass:[NSNull class]])
    {
        NSMutableArray* propertyArray = [[NSMutableArray alloc]init];
        for(int i = 0 ; i< [extraInfoBeforeArray count];i++)
        {
            ExtraInfo* item = [[ExtraInfo alloc]initWithDic:[extraInfoBeforeArray objectAtIndex:i]];
            if(item)
            {
                [propertyArray addObject:item];
            }
        }
        self.extraInfoBefore = propertyArray;
    }
    NSArray* extraInfoAfterArray = [dictionary objectForKey:@"extraInfoAfter"];
    if(extraInfoAfterArray&&![extraInfoAfterArray isKindOfClass:[NSNull class]])
    {
        NSMutableArray* propertyArray = [[NSMutableArray alloc]init];
        for(int i = 0 ; i< [extraInfoAfterArray count];i++)
        {
            ExtraInfo* item = [[ExtraInfo alloc]initWithDic:[extraInfoAfterArray objectAtIndex:i]];
            if(item)
            {
                [propertyArray addObject:item];
            }
        }
        self.extraInfoAfter = propertyArray;
    }
    NSArray* extraInfoArray = [dictionary objectForKey:@"extraInfo"];
    if(extraInfoArray&&![extraInfoArray isKindOfClass:[NSNull class]])
    {
        NSMutableArray* propertyArray = [[NSMutableArray alloc]init];
        for(int i = 0 ; i< [extraInfoArray count];i++)
        {
            ExtraInfo* item = [[ExtraInfo alloc]initWithDic:[extraInfoArray objectAtIndex:i]];
            if(item)
            {
                [propertyArray addObject:item];
            }
        }
        self.extraInfo = propertyArray;
    }
    self.actualFee = [dictionary objectForKey:@"actualFee"];
    self.quantity = [dictionary objectForKey:@"quantity"];
    self.expireDateBefore = [dictionary objectForKey:@"expireDateBefore"];
    self.expireDateAfter = [dictionary objectForKey:@"expireDateAfter"];
    self.unit = [dictionary objectForKey:@"unit"];
    self.chargeDuration = [dictionary objectForKey:@"chargeDuration"];
    self.chargeMode = [dictionary objectForKey:@"chargeMode"];
    self.totalFee = [dictionary objectForKey:@"totalFee"];
    self.serviceName = [dictionary objectForKey:@"serviceName"];
    self.siteType = [dictionary objectForKey:@"siteType"];
    self.createTime = [dictionary objectForKey:@"createTime"];
    self.status = [dictionary objectForKey:@"status"];
    self.itemId = [dictionary objectForKey:@"itemId"];
    self.itemName = [dictionary objectForKey:@"itemName"];
    self.formula = [dictionary objectForKey:@"formula"];
    self.orderNumber = [dictionary objectForKey:@"orderNumber"];
    self.allActualFee = [dictionary objectForKey:@"allActualFee"];
    self.remark = [dictionary objectForKey:@"remark"];
    self.moneyPay = [dictionary objectForKey:@"moneyPay"];
    self.balancePay = [dictionary objectForKey:@"balancePay"];
    self.refundFee = [dictionary objectForKey:@"refundFee"];
    self.chargeModeInfo = [dictionary objectForKey:@"chargeModeInfo"];
    self.deleteStatus = [dictionary objectForKey:@"deleteStatus"];
    self.favorableFee = [dictionary objectForKey:@"favorableFee"];
    self.resizeFormulaType = [dictionary objectForKey:@"resizeFormulaType"];
    return self;
}
 @end
@implementation ReturnBillResult
-(id) initWithId:(NSNumber*) idValue
      retrunBillId:(NSString*)retrunBillId
      distributorId:(NSString*)distributorId
      distributorName:(NSString*)distributorName
      distributorType:(NSNumber*)distributorType
      month:(NSString*)month
      generateTime:(NSString*)generateTime
      billBegin:(NSString*)billBegin
      billEnd:(NSString*)billEnd
      circleType:(NSNumber*)circleType
      returnType:(NSNumber*)returnType
      returnTypeName:(NSString*)returnTypeName
      returnMount:(NSNumber*)returnMount
      redoQty:(NSNumber*)redoQty
      status:(NSNumber*)status
      statusName:(NSString*)statusName
      reason:(NSString*)reason
      deptId:(NSNumber*)deptId
      deptName:(NSString*)deptName
      createTime:(NSString*)createTime
      createUser:(NSString*)createUser
      updateTime:(NSString*)updateTime
      updateUser:(NSString*)updateUser
      yn:(NSNumber*)yn
      returnBillDetailList:(NSArray<ReturnBillDetailResult*>*)returnBillDetailList
      returnBillStatusList:(NSArray<ReturnBillStatusResult*>*)returnBillStatusList { 
     self.idValue = idValue;               
     self.retrunBillId = retrunBillId;               
     self.distributorId = distributorId;               
     self.distributorName = distributorName;               
     self.distributorType = distributorType;               
     self.month = month;               
     self.generateTime = generateTime;               
     self.billBegin = billBegin;               
     self.billEnd = billEnd;               
     self.circleType = circleType;               
     self.returnType = returnType;               
     self.returnTypeName = returnTypeName;               
     self.returnMount = returnMount;               
     self.redoQty = redoQty;               
     self.status = status;               
     self.statusName = statusName;               
     self.reason = reason;               
     self.deptId = deptId;               
     self.deptName = deptName;               
     self.createTime = createTime;               
     self.createUser = createUser;               
     self.updateTime = updateTime;               
     self.updateUser = updateUser;               
     self.yn = yn;               
     self.returnBillDetailList = returnBillDetailList;               
     self.returnBillStatusList = returnBillStatusList;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self idValue])
    {
        [result setValue:[self idValue] forKey:@"id"];
    }
    if([self retrunBillId])
    {
        [result setValue:[self retrunBillId] forKey:@"retrunBillId"];
    }
    if([self distributorId])
    {
        [result setValue:[self distributorId] forKey:@"distributorId"];
    }
    if([self distributorName])
    {
        [result setValue:[self distributorName] forKey:@"distributorName"];
    }
    if([self distributorType])
    {
        [result setValue:[self distributorType] forKey:@"distributorType"];
    }
    if([self month])
    {
        [result setValue:[self month] forKey:@"month"];
    }
    if([self generateTime])
    {
        [result setValue:[self generateTime] forKey:@"generateTime"];
    }
    if([self billBegin])
    {
        [result setValue:[self billBegin] forKey:@"billBegin"];
    }
    if([self billEnd])
    {
        [result setValue:[self billEnd] forKey:@"billEnd"];
    }
    if([self circleType])
    {
        [result setValue:[self circleType] forKey:@"circleType"];
    }
    if([self returnType])
    {
        [result setValue:[self returnType] forKey:@"returnType"];
    }
    if([self returnTypeName])
    {
        [result setValue:[self returnTypeName] forKey:@"returnTypeName"];
    }
    if([self returnMount])
    {
        [result setValue:[self returnMount] forKey:@"returnMount"];
    }
    if([self redoQty])
    {
        [result setValue:[self redoQty] forKey:@"redoQty"];
    }
    if([self status])
    {
        [result setValue:[self status] forKey:@"status"];
    }
    if([self statusName])
    {
        [result setValue:[self statusName] forKey:@"statusName"];
    }
    if([self reason])
    {
        [result setValue:[self reason] forKey:@"reason"];
    }
    if([self deptId])
    {
        [result setValue:[self deptId] forKey:@"deptId"];
    }
    if([self deptName])
    {
        [result setValue:[self deptName] forKey:@"deptName"];
    }
    if([self createTime])
    {
        [result setValue:[self createTime] forKey:@"createTime"];
    }
    if([self createUser])
    {
        [result setValue:[self createUser] forKey:@"createUser"];
    }
    if([self updateTime])
    {
        [result setValue:[self updateTime] forKey:@"updateTime"];
    }
    if([self updateUser])
    {
        [result setValue:[self updateUser] forKey:@"updateUser"];
    }
    if([self yn])
    {
        [result setValue:[self yn] forKey:@"yn"];
    }
    if([self returnBillDetailList])
    {
        NSMutableArray<NSDictionary*>* arrayDic  = [[NSMutableArray alloc] init];
        for (int i =0 ; i< [[self returnBillDetailList] count]; i++) {
            ReturnBillDetailResult* item = [[self returnBillDetailList] objectAtIndex:i];
            [arrayDic addObject:[item dictionary]];
        }
        [result setValue:arrayDic forKey:@"returnBillDetailList"];
    }
    if([self returnBillStatusList])
    {
        NSMutableArray<NSDictionary*>* arrayDic  = [[NSMutableArray alloc] init];
        for (int i =0 ; i< [[self returnBillStatusList] count]; i++) {
            ReturnBillStatusResult* item = [[self returnBillStatusList] objectAtIndex:i];
            [arrayDic addObject:[item dictionary]];
        }
        [result setValue:arrayDic forKey:@"returnBillStatusList"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.idValue = [dictionary objectForKey:@"id"];
    self.retrunBillId = [dictionary objectForKey:@"retrunBillId"];
    self.distributorId = [dictionary objectForKey:@"distributorId"];
    self.distributorName = [dictionary objectForKey:@"distributorName"];
    self.distributorType = [dictionary objectForKey:@"distributorType"];
    self.month = [dictionary objectForKey:@"month"];
    self.generateTime = [dictionary objectForKey:@"generateTime"];
    self.billBegin = [dictionary objectForKey:@"billBegin"];
    self.billEnd = [dictionary objectForKey:@"billEnd"];
    self.circleType = [dictionary objectForKey:@"circleType"];
    self.returnType = [dictionary objectForKey:@"returnType"];
    self.returnTypeName = [dictionary objectForKey:@"returnTypeName"];
    self.returnMount = [dictionary objectForKey:@"returnMount"];
    self.redoQty = [dictionary objectForKey:@"redoQty"];
    self.status = [dictionary objectForKey:@"status"];
    self.statusName = [dictionary objectForKey:@"statusName"];
    self.reason = [dictionary objectForKey:@"reason"];
    self.deptId = [dictionary objectForKey:@"deptId"];
    self.deptName = [dictionary objectForKey:@"deptName"];
    self.createTime = [dictionary objectForKey:@"createTime"];
    self.createUser = [dictionary objectForKey:@"createUser"];
    self.updateTime = [dictionary objectForKey:@"updateTime"];
    self.updateUser = [dictionary objectForKey:@"updateUser"];
    self.yn = [dictionary objectForKey:@"yn"];
    NSArray* returnBillDetailListArray = [dictionary objectForKey:@"returnBillDetailList"];
    if(returnBillDetailListArray&&![returnBillDetailListArray isKindOfClass:[NSNull class]])
    {
        NSMutableArray* propertyArray = [[NSMutableArray alloc]init];
        for(int i = 0 ; i< [returnBillDetailListArray count];i++)
        {
            ReturnBillDetailResult* item = [[ReturnBillDetailResult alloc]initWithDic:[returnBillDetailListArray objectAtIndex:i]];
            if(item)
            {
                [propertyArray addObject:item];
            }
        }
        self.returnBillDetailList = propertyArray;
    }
    NSArray* returnBillStatusListArray = [dictionary objectForKey:@"returnBillStatusList"];
    if(returnBillStatusListArray&&![returnBillStatusListArray isKindOfClass:[NSNull class]])
    {
        NSMutableArray* propertyArray = [[NSMutableArray alloc]init];
        for(int i = 0 ; i< [returnBillStatusListArray count];i++)
        {
            ReturnBillStatusResult* item = [[ReturnBillStatusResult alloc]initWithDic:[returnBillStatusListArray objectAtIndex:i]];
            if(item)
            {
                [propertyArray addObject:item];
            }
        }
        self.returnBillStatusList = propertyArray;
    }
    return self;
}
 @end
@implementation ReturnPolicyDTO
-(id) initWithId:(NSNumber*) idValue
      deptId:(NSNumber*)deptId
      deptName:(NSString*)deptName
      distributorType:(NSNumber*)distributorType
      returnType:(NSNumber*)returnType
      itemId:(NSNumber*)itemId
      itemName:(NSString*)itemName
      circleType:(NSNumber*)circleType
      circleName:(NSString*)circleName
      circleFlag:(NSNumber*)circleFlag
      circleValue:(NSNumber*)circleValue
      condition:(NSArray<ReturnConditionOperatorDTO*>*)condition
      conditionRemark:(NSString*)conditionRemark
      returnRatio:(NSNumber*)returnRatio
      status:(NSNumber*)status
      createTime:(NSString*)createTime
      createUser:(NSString*)createUser
      updateTime:(NSString*)updateTime
      updateUser:(NSString*)updateUser
      yn:(NSNumber*)yn { 
     self.idValue = idValue;               
     self.deptId = deptId;               
     self.deptName = deptName;               
     self.distributorType = distributorType;               
     self.returnType = returnType;               
     self.itemId = itemId;               
     self.itemName = itemName;               
     self.circleType = circleType;               
     self.circleName = circleName;               
     self.circleFlag = circleFlag;               
     self.circleValue = circleValue;               
     self.condition = condition;               
     self.conditionRemark = conditionRemark;               
     self.returnRatio = returnRatio;               
     self.status = status;               
     self.createTime = createTime;               
     self.createUser = createUser;               
     self.updateTime = updateTime;               
     self.updateUser = updateUser;               
     self.yn = yn;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self idValue])
    {
        [result setValue:[self idValue] forKey:@"id"];
    }
    if([self deptId])
    {
        [result setValue:[self deptId] forKey:@"deptId"];
    }
    if([self deptName])
    {
        [result setValue:[self deptName] forKey:@"deptName"];
    }
    if([self distributorType])
    {
        [result setValue:[self distributorType] forKey:@"distributorType"];
    }
    if([self returnType])
    {
        [result setValue:[self returnType] forKey:@"returnType"];
    }
    if([self itemId])
    {
        [result setValue:[self itemId] forKey:@"itemId"];
    }
    if([self itemName])
    {
        [result setValue:[self itemName] forKey:@"itemName"];
    }
    if([self circleType])
    {
        [result setValue:[self circleType] forKey:@"circleType"];
    }
    if([self circleName])
    {
        [result setValue:[self circleName] forKey:@"circleName"];
    }
    if([self circleFlag])
    {
        [result setValue:[self circleFlag] forKey:@"circleFlag"];
    }
    if([self circleValue])
    {
        [result setValue:[self circleValue] forKey:@"circleValue"];
    }
    if([self condition])
    {
        NSMutableArray<NSDictionary*>* arrayDic  = [[NSMutableArray alloc] init];
        for (int i =0 ; i< [[self condition] count]; i++) {
            ReturnConditionOperatorDTO* item = [[self condition] objectAtIndex:i];
            [arrayDic addObject:[item dictionary]];
        }
        [result setValue:arrayDic forKey:@"condition"];
    }
    if([self conditionRemark])
    {
        [result setValue:[self conditionRemark] forKey:@"conditionRemark"];
    }
    if([self returnRatio])
    {
        [result setValue:[self returnRatio] forKey:@"returnRatio"];
    }
    if([self status])
    {
        [result setValue:[self status] forKey:@"status"];
    }
    if([self createTime])
    {
        [result setValue:[self createTime] forKey:@"createTime"];
    }
    if([self createUser])
    {
        [result setValue:[self createUser] forKey:@"createUser"];
    }
    if([self updateTime])
    {
        [result setValue:[self updateTime] forKey:@"updateTime"];
    }
    if([self updateUser])
    {
        [result setValue:[self updateUser] forKey:@"updateUser"];
    }
    if([self yn])
    {
        [result setValue:[self yn] forKey:@"yn"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.idValue = [dictionary objectForKey:@"id"];
    self.deptId = [dictionary objectForKey:@"deptId"];
    self.deptName = [dictionary objectForKey:@"deptName"];
    self.distributorType = [dictionary objectForKey:@"distributorType"];
    self.returnType = [dictionary objectForKey:@"returnType"];
    self.itemId = [dictionary objectForKey:@"itemId"];
    self.itemName = [dictionary objectForKey:@"itemName"];
    self.circleType = [dictionary objectForKey:@"circleType"];
    self.circleName = [dictionary objectForKey:@"circleName"];
    self.circleFlag = [dictionary objectForKey:@"circleFlag"];
    self.circleValue = [dictionary objectForKey:@"circleValue"];
    NSArray* conditionArray = [dictionary objectForKey:@"condition"];
    if(conditionArray&&![conditionArray isKindOfClass:[NSNull class]])
    {
        NSMutableArray* propertyArray = [[NSMutableArray alloc]init];
        for(int i = 0 ; i< [conditionArray count];i++)
        {
            ReturnConditionOperatorDTO* item = [[ReturnConditionOperatorDTO alloc]initWithDic:[conditionArray objectAtIndex:i]];
            if(item)
            {
                [propertyArray addObject:item];
            }
        }
        self.condition = propertyArray;
    }
    self.conditionRemark = [dictionary objectForKey:@"conditionRemark"];
    self.returnRatio = [dictionary objectForKey:@"returnRatio"];
    self.status = [dictionary objectForKey:@"status"];
    self.createTime = [dictionary objectForKey:@"createTime"];
    self.createUser = [dictionary objectForKey:@"createUser"];
    self.updateTime = [dictionary objectForKey:@"updateTime"];
    self.updateUser = [dictionary objectForKey:@"updateUser"];
    self.yn = [dictionary objectForKey:@"yn"];
    return self;
}
 @end
@implementation OrderDetail
-(id) initWithOrderItemDetails:(NSArray<OrderItemDetail*>*) orderItemDetails
      childOrderDetailList:(NSArray<OrderDetail*>*)childOrderDetailList
      orderNumber:(NSString*)orderNumber
      status:(NSString*)status
      orderType:(NSString*)orderType
      chargeMode:(NSString*)chargeMode
      appName:(NSString*)appName
      serviceName:(NSString*)serviceName
      payType:(NSString*)payType
      selfSupportType:(NSString*)selfSupportType
      siteType:(NSString*)siteType
      createTime:(NSString*)createTime
      payTime:(NSString*)payTime
      isActualFeeModified:(NSString*)isActualFeeModified
      totalFee:(NSNumber*)totalFee
      actualFee:(NSNumber*)actualFee
      discountFee:(NSNumber*)discountFee
      paidFee:(NSNumber*)paidFee
      favorableFee:(NSNumber*)favorableFee
      favorableFeeJson:(NSString*)favorableFeeJson
      moneyPay:(NSNumber*)moneyPay
      balancePay:(NSNumber*)balancePay
      payUrl:(NSString*)payUrl
      pin:(NSString*)pin
      remark:(NSString*)remark
      expirationTime:(NSString*)expirationTime
      refundFee:(NSNumber*)refundFee
      orderTypeInfo:(NSNumber*)orderTypeInfo
      chargeModeInfo:(NSNumber*)chargeModeInfo
      statusInfo:(NSNumber*)statusInfo
      selfSupportTypeInfo:(NSNumber*)selfSupportTypeInfo
      paymentChannel:(NSNumber*)paymentChannel
      updatedTime:(NSString*)updatedTime
      paymentNumber:(NSString*)paymentNumber
      payer:(NSString*)payer
      proposer:(NSString*)proposer
      appCode:(NSString*)appCode { 
     self.orderItemDetails = orderItemDetails;               
     self.childOrderDetailList = childOrderDetailList;               
     self.orderNumber = orderNumber;               
     self.status = status;               
     self.orderType = orderType;               
     self.chargeMode = chargeMode;               
     self.appName = appName;               
     self.serviceName = serviceName;               
     self.payType = payType;               
     self.selfSupportType = selfSupportType;               
     self.siteType = siteType;               
     self.createTime = createTime;               
     self.payTime = payTime;               
     self.isActualFeeModified = isActualFeeModified;               
     self.totalFee = totalFee;               
     self.actualFee = actualFee;               
     self.discountFee = discountFee;               
     self.paidFee = paidFee;               
     self.favorableFee = favorableFee;               
     self.favorableFeeJson = favorableFeeJson;               
     self.moneyPay = moneyPay;               
     self.balancePay = balancePay;               
     self.payUrl = payUrl;               
     self.pin = pin;               
     self.remark = remark;               
     self.expirationTime = expirationTime;               
     self.refundFee = refundFee;               
     self.orderTypeInfo = orderTypeInfo;               
     self.chargeModeInfo = chargeModeInfo;               
     self.statusInfo = statusInfo;               
     self.selfSupportTypeInfo = selfSupportTypeInfo;               
     self.paymentChannel = paymentChannel;               
     self.updatedTime = updatedTime;               
     self.paymentNumber = paymentNumber;               
     self.payer = payer;               
     self.proposer = proposer;               
     self.appCode = appCode;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self orderItemDetails])
    {
        NSMutableArray<NSDictionary*>* arrayDic  = [[NSMutableArray alloc] init];
        for (int i =0 ; i< [[self orderItemDetails] count]; i++) {
            OrderItemDetail* item = [[self orderItemDetails] objectAtIndex:i];
            [arrayDic addObject:[item dictionary]];
        }
        [result setValue:arrayDic forKey:@"orderItemDetails"];
    }
    if([self childOrderDetailList])
    {
        NSMutableArray<NSDictionary*>* arrayDic  = [[NSMutableArray alloc] init];
        for (int i =0 ; i< [[self childOrderDetailList] count]; i++) {
            OrderDetail* item = [[self childOrderDetailList] objectAtIndex:i];
            [arrayDic addObject:[item dictionary]];
        }
        [result setValue:arrayDic forKey:@"childOrderDetailList"];
    }
    if([self orderNumber])
    {
        [result setValue:[self orderNumber] forKey:@"orderNumber"];
    }
    if([self status])
    {
        [result setValue:[self status] forKey:@"status"];
    }
    if([self orderType])
    {
        [result setValue:[self orderType] forKey:@"orderType"];
    }
    if([self chargeMode])
    {
        [result setValue:[self chargeMode] forKey:@"chargeMode"];
    }
    if([self appName])
    {
        [result setValue:[self appName] forKey:@"appName"];
    }
    if([self serviceName])
    {
        [result setValue:[self serviceName] forKey:@"serviceName"];
    }
    if([self payType])
    {
        [result setValue:[self payType] forKey:@"payType"];
    }
    if([self selfSupportType])
    {
        [result setValue:[self selfSupportType] forKey:@"selfSupportType"];
    }
    if([self siteType])
    {
        [result setValue:[self siteType] forKey:@"siteType"];
    }
    if([self createTime])
    {
        [result setValue:[self createTime] forKey:@"createTime"];
    }
    if([self payTime])
    {
        [result setValue:[self payTime] forKey:@"payTime"];
    }
    if([self isActualFeeModified])
    {
        [result setValue:[self isActualFeeModified] forKey:@"isActualFeeModified"];
    }
    if([self totalFee])
    {
        [result setValue:[self totalFee] forKey:@"totalFee"];
    }
    if([self actualFee])
    {
        [result setValue:[self actualFee] forKey:@"actualFee"];
    }
    if([self discountFee])
    {
        [result setValue:[self discountFee] forKey:@"discountFee"];
    }
    if([self paidFee])
    {
        [result setValue:[self paidFee] forKey:@"paidFee"];
    }
    if([self favorableFee])
    {
        [result setValue:[self favorableFee] forKey:@"favorableFee"];
    }
    if([self favorableFeeJson])
    {
        [result setValue:[self favorableFeeJson] forKey:@"favorableFeeJson"];
    }
    if([self moneyPay])
    {
        [result setValue:[self moneyPay] forKey:@"moneyPay"];
    }
    if([self balancePay])
    {
        [result setValue:[self balancePay] forKey:@"balancePay"];
    }
    if([self payUrl])
    {
        [result setValue:[self payUrl] forKey:@"payUrl"];
    }
    if([self pin])
    {
        [result setValue:[self pin] forKey:@"pin"];
    }
    if([self remark])
    {
        [result setValue:[self remark] forKey:@"remark"];
    }
    if([self expirationTime])
    {
        [result setValue:[self expirationTime] forKey:@"expirationTime"];
    }
    if([self refundFee])
    {
        [result setValue:[self refundFee] forKey:@"refundFee"];
    }
    if([self orderTypeInfo])
    {
        [result setValue:[self orderTypeInfo] forKey:@"orderTypeInfo"];
    }
    if([self chargeModeInfo])
    {
        [result setValue:[self chargeModeInfo] forKey:@"chargeModeInfo"];
    }
    if([self statusInfo])
    {
        [result setValue:[self statusInfo] forKey:@"statusInfo"];
    }
    if([self selfSupportTypeInfo])
    {
        [result setValue:[self selfSupportTypeInfo] forKey:@"selfSupportTypeInfo"];
    }
    if([self paymentChannel])
    {
        [result setValue:[self paymentChannel] forKey:@"paymentChannel"];
    }
    if([self updatedTime])
    {
        [result setValue:[self updatedTime] forKey:@"updatedTime"];
    }
    if([self paymentNumber])
    {
        [result setValue:[self paymentNumber] forKey:@"paymentNumber"];
    }
    if([self payer])
    {
        [result setValue:[self payer] forKey:@"payer"];
    }
    if([self proposer])
    {
        [result setValue:[self proposer] forKey:@"proposer"];
    }
    if([self appCode])
    {
        [result setValue:[self appCode] forKey:@"appCode"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    NSArray* orderItemDetailsArray = [dictionary objectForKey:@"orderItemDetails"];
    if(orderItemDetailsArray&&![orderItemDetailsArray isKindOfClass:[NSNull class]])
    {
        NSMutableArray* propertyArray = [[NSMutableArray alloc]init];
        for(int i = 0 ; i< [orderItemDetailsArray count];i++)
        {
            OrderItemDetail* item = [[OrderItemDetail alloc]initWithDic:[orderItemDetailsArray objectAtIndex:i]];
            if(item)
            {
                [propertyArray addObject:item];
            }
        }
        self.orderItemDetails = propertyArray;
    }
    NSArray* childOrderDetailListArray = [dictionary objectForKey:@"childOrderDetailList"];
    if(childOrderDetailListArray&&![childOrderDetailListArray isKindOfClass:[NSNull class]])
    {
        NSMutableArray* propertyArray = [[NSMutableArray alloc]init];
        for(int i = 0 ; i< [childOrderDetailListArray count];i++)
        {
            OrderDetail* item = [[OrderDetail alloc]initWithDic:[childOrderDetailListArray objectAtIndex:i]];
            if(item)
            {
                [propertyArray addObject:item];
            }
        }
        self.childOrderDetailList = propertyArray;
    }
    self.orderNumber = [dictionary objectForKey:@"orderNumber"];
    self.status = [dictionary objectForKey:@"status"];
    self.orderType = [dictionary objectForKey:@"orderType"];
    self.chargeMode = [dictionary objectForKey:@"chargeMode"];
    self.appName = [dictionary objectForKey:@"appName"];
    self.serviceName = [dictionary objectForKey:@"serviceName"];
    self.payType = [dictionary objectForKey:@"payType"];
    self.selfSupportType = [dictionary objectForKey:@"selfSupportType"];
    self.siteType = [dictionary objectForKey:@"siteType"];
    self.createTime = [dictionary objectForKey:@"createTime"];
    self.payTime = [dictionary objectForKey:@"payTime"];
    self.isActualFeeModified = [dictionary objectForKey:@"isActualFeeModified"];
    self.totalFee = [dictionary objectForKey:@"totalFee"];
    self.actualFee = [dictionary objectForKey:@"actualFee"];
    self.discountFee = [dictionary objectForKey:@"discountFee"];
    self.paidFee = [dictionary objectForKey:@"paidFee"];
    self.favorableFee = [dictionary objectForKey:@"favorableFee"];
    self.favorableFeeJson = [dictionary objectForKey:@"favorableFeeJson"];
    self.moneyPay = [dictionary objectForKey:@"moneyPay"];
    self.balancePay = [dictionary objectForKey:@"balancePay"];
    self.payUrl = [dictionary objectForKey:@"payUrl"];
    self.pin = [dictionary objectForKey:@"pin"];
    self.remark = [dictionary objectForKey:@"remark"];
    self.expirationTime = [dictionary objectForKey:@"expirationTime"];
    self.refundFee = [dictionary objectForKey:@"refundFee"];
    self.orderTypeInfo = [dictionary objectForKey:@"orderTypeInfo"];
    self.chargeModeInfo = [dictionary objectForKey:@"chargeModeInfo"];
    self.statusInfo = [dictionary objectForKey:@"statusInfo"];
    self.selfSupportTypeInfo = [dictionary objectForKey:@"selfSupportTypeInfo"];
    self.paymentChannel = [dictionary objectForKey:@"paymentChannel"];
    self.updatedTime = [dictionary objectForKey:@"updatedTime"];
    self.paymentNumber = [dictionary objectForKey:@"paymentNumber"];
    self.payer = [dictionary objectForKey:@"payer"];
    self.proposer = [dictionary objectForKey:@"proposer"];
    self.appCode = [dictionary objectForKey:@"appCode"];
    return self;
}
 @end
 
 


